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.
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.
- caused by
-
JDK-8303431 [JVMCI] libgraal annotation API
-
- Resolved
-
- links to
-
Review(master) openjdk/jdk/26116