Negative cases of Annotated.getAnnotationData implementations are broken

XMLWordPrintable

    • 21
    • b06

      The implementation of the methods in the jdk.vm.ci.meta.Annotated interface (added by JDK-8303431) are broken in various ways:

      1. Annotated.getAnnotationData(annotationType) throws `java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0` if the receiver is not annotated by annotationType.
      2. Not all implementations of getAnnotationData raise IllegalArgumentException if passed an annotationType value that does not represent an annotation interface.

            Assignee:
            Douglas Simon
            Reporter:
            Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: