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

Negative cases of Annotated.getAnnotationData implementations are broken

XMLWordPrintable

    • 21

      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.

            dnsimon Douglas Simon
            dnsimon Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: