MethodHandles.countedLoop(MH, MH, MH, MH) creates method handle with wrong return type, e.g. start=()int end=()int init=null body=(int)String Should result with void method handle (according to countedLoop documentation and generic loop documentation both). Expected result ()void, actual ()String. The same situation occurred with MethodHandles.countedLoop(MH, MH, MH) and MethodHandles.iteratedLoop(...). Example for iteratedLoop - Failures1.java Example for countedLoop(...) - Failures0.java Found on jdk9_b116, tests are under development
|