JDK-8152570 : MethodHandles.countedLoop(MH, MH, MH, MH) implementation requirements
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-03-23
  • Updated: 2016-04-04
  • Resolved: 2016-04-04
Description
Code in section @ImplSpec is not equals to current implementation in some cases. 
1. In the case init=null, doc's implementation throws NPE, see example attached


Since we have no changes in countedLoop(MH, MH, MH, MH) docs, it would be good to add 
"The implementation of this method is equivalent to (excluding error handling): "
the same way it was done for JDK-8151903
Comments
Correct; the error handling remark should be added to the documentation. This will be done as for JDK-8150964. Resolved internally; fix will be pushed with JDK-8151179.
04-04-2016