commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
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
             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


Using plain \@Deprecated generates a compiler error:

(Eclips) Deprecated is not an annotation type
(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

View raw message