unknown annotations are not ignored in Class.getAnnotations

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P1
    • 5.0u6
    • Affects Version/s: 5.0
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: