Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8005625

MethodHandles.catchException can produce wrong type result if arity is 9 or more

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 8
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      If MethodHandles.catchException is given a MH argument with 9 or more parameters of type other than Object, the returned MH will have the correct arity but wrong argument types (Object).

      The bug was first reported here:

      http://mail.openjdk.java.net/pipermail/mlvm-dev/2012-December/005136.html

      The fix is to add a call to makePairwiseConvert in the 'else' clause of MethodHandleImpl.makeGuardWithCatch.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jrose John Rose
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: