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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: