Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8080588 VarHandles development
  3. JDK-8156485

MethodHandles.varHandleExactInvoker should perform exact checks

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:

      Description

      The fix for JDK-8155258 introduced a regression whereby the erased call site method type and the erased target method type are checked for equality. The exact method types should be checked.

      The lambda form shapes for the generic and exact invokers should be the same, and should switch on the appropriate checkVarHandle*Type method that returns a method handle.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              psandoz Paul Sandoz
              Reporter:
              psandoz Paul Sandoz
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: