Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8151179 address issues raised by JCK team on JEP 274 API
  3. JDK-8151894

MethodHandles.countedLoop(MH, MH, MH, MH) small doc issues

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

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

            mhaupt Michael Haupt
            asolodkaya Anastasiya Solodkaya (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: