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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 8
    • 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.

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

              Created:
              Updated:
              Resolved: