commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Created] (BCEL-256) classfile.Deprecated class causes problems
Date Tue, 25 Aug 2015 13:19:45 GMT
Sebb created BCEL-256:
-------------------------

             Summary: classfile.Deprecated class causes problems
                 Key: BCEL-256
                 URL: https://issues.apache.org/jira/browse/BCEL-256
             Project: Commons BCEL
          Issue Type: Improvement
            Reporter: Sebb


The Deprecated class causes problems when adding the \@Deprecated annotation to any classes
in the same package (or when Deprecated) is imported (it cannot be extended).

The annotation has to be written as

\@java.lang.Deprecated

Using plain \@Deprecated generates a compiler error:

(Eclips) Deprecated is not an annotation type
or
(Javac) incompatible types
[ERROR] required: java.lang.annotation.Annotation
[ERROR] found:    org.apache.commons.bcel6.classfile.Deprecated



Consider deprecating the class and creating a replacement with a different name



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message