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

unknown annotations are not ignored in Class.getAnnotations

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 5.0u6
    • 5.0
    • core-libs
    • b04
    • generic
    • generic
    • Verified

        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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: