Relates :
|
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
|