Skip to content

Forbidden @java.lang.Deprecated is not always detected #45

Closed
@GoogleCodeExporter

Description

@GoogleCodeExporter
If you put java.lang.Deprecated on the forbidden apis list, it is not always 
correctly detected. The reason for this is, that the Java compiler translates 
it into the deprecated code attribute and may not always put it as a real 
annotation.

As discussed on issue #44, we should "emulate" a java.lang.Deprecated ASM 
annotation visitor event, if the attribute is found (and filter duplicates). By 
that also code not making explicit use of @Deprecated annotation (just uses the 
@deprecated javadoc tag), will be detected correctly as having the attribute.

Original issue reported on code.google.com by uwe.h.schindler on 24 Dec 2014 at 12:24

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions