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

MethodHandles.catchException doesn't handle VarargsCollector right

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u20, 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b04
    • Verification:
      Fix failed

      Backports

        Description

        catchException does unnecessary boxing of trailing array for VarargsCollector.

        Attached test case (CatchException.java) demonstrates that target returns Object[] { "str"}, but MethodHandles.catchException(target,...) returns Object[][] {{ "str" }}

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  vlivanov Vladimir Ivanov
                  Reporter:
                  vlivanov Vladimir Ivanov
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: