JDK-8151894 : MethodHandles.countedLoop(MH, MH, MH, MH) small doc issues
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-03-15
  • Updated: 2016-03-22
  • Resolved: 2016-03-22
Related Reports
Relates :  
Description
-- Additionally, the start and end handles must return an int and accept the same parameters as init.

Actually both of them could accept no parameters as shown in MethodHandles.countedLoop(MH, MH, MH) lambdaman example

-- Implementation requirements:
// assume MH_increment and MH_lessThan are handles to x+1 and x<y of type int

'x < y of type int' looks a little bit strange. Maybe it would be good to clarify this a little bit.

+ It is hard to deduce resulting handle parameter list in the case of absent 'init' function. The situation is the same as in JDK-8150964 comment
Comments
The issue with the resulting handle parameter list will be addressed with JDK-8151736.
22-03-2016

Resolved internally; fix will be pushed with JDK-8151179.
22-03-2016