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

unknown annotations are not ignored in Class.getAnnotations

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0u6
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b04
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        Description

        If I use Class.getAnnotations to discover all the annotations on a class,
        and the class includes annotations that are unknown to the runtime (e.g.,
        because the class was annotated with vendor-specific annotations for one
        app server and is being deployed on another app server), I get an exception
        and can't discover any of the annotations on the class. According to the
        JSR-175 spec lead, unknown annotations must be ignored by getAnnotations.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                darcy Joe Darcy
                Reporter:
                bshannon Bill Shannon (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: