An exception is thrown when using Eclipse OpenJ9 JVM to run the following test case: Test case: import org.hibernate.validator.cdi.internal.ValidateableBeanFilter; import javax.validation.constraints.NotNull; import java.util.Iterator; public class A { class Inner { Inner (@NotNull Iterator<String> delegate) { } } public static void main(String[] args) { ValidateableBeanFilter filter = new ValidateableBeanFilter(); System.out.println(filter.test(A.Inner.class)); } } Current result: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 1 at java.lang.reflect.Executable.getAllGenericParameterTypes(Executable.java:318) at java.lang.reflect.Executable.getAnnotatedParameterTypes(Executable.java:693) at org.hibernate.validator.cdi.internal.ValidateableBeanFilter.hasMatchingAnnotation(ValidateableBeanFilter.java:129) at org.hibernate.validator.cdi.internal.ValidateableBeanFilter.hasMatchingAnnotation(ValidateableBeanFilter.java:82) at org.hibernate.validator.cdi.internal.ValidateableBeanFilter.test(ValidateableBeanFilter.java:55) at A.main(A.java:15) Expected result: true JVM Info: openjdk version "1.8.0_162" OpenJDK Runtime Environment (build 1.8.0_162-b12) Eclipse OpenJ9 VM (build openj9-0.8.0, JRE 1.8.0 Linux amd64-64 Compressed References 20180315_120 (JIT enabled, AOT enabled) OpenJ9 - e24e8aa9 OMR - 3e8296b4 JCL - ee1e77df1d based on jdk8u162-b12) |