Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8200205

Method.getAnnotations fails to find annotations under certain circumstances

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      If Bar extends Foo, and Foo is package protected, then Method.getAnnotations() fails to find the annotations on public methods defined on Foo.
      However, it does work if you inspect the annotations on Foo directly. The combination of a sub-class, and package protected abstract parent class, causes the issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aefimov Aleksej Efimov
                Reporter:
                shadowbug Shadow Bug
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: