Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8025909 Lambda Library Spec Updates
  3. JDK-8024138

(Spec clarification) Lambda Metafactory spec should state DMH constraint on implMethod

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Fixed
    • P3
    • 8
    • None
    • core-libs

    Description

      The MethodHandle passed to the lambda metafactory must be a direct method handle, suitable for cracking by MethodHandleInfo. We could either borrow the constraints of MHI or the constraints of "method handles that can be in the constant pool"; the latter is narrower and fits better into intended usage.

      This is a spec-only clarification.

      Attachments

        Issue Links

          Activity

            People

              henryjen Henry Jen
              briangoetz Brian Goetz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: