-
Bug
-
Resolution: Fixed
-
P2
-
None
-
b143
-
Verified
According to MethodHandles.iteratedLoop(...) documentation's last constraint, following input is allowed:
iterator=null
init=()I
body=(I, String[])I
Please, observe two examples (Example0 and Example1) showing that loop run fails in this case. Note that loop handle was created successfully in both examples.
Thrown exception: Exception in thread "main" java.lang.ClassCastException: Cannot cast [Ljava.lang.String; to java.lang.Iterable
Was found on jdk9b140
iterator=null
init=()I
body=(I, String[])I
Please, observe two examples (Example0 and Example1) showing that loop run fails in this case. Note that loop handle was created successfully in both examples.
Thrown exception: Exception in thread "main" java.lang.ClassCastException: Cannot cast [Ljava.lang.String; to java.lang.Iterable
Was found on jdk9b140
- relates to
-
JDK-8151179 address issues raised by JCK team on JEP 274 API
-
- Closed
-