JDK-8036117 : MethodHandles.catchException doesn't handle VarargsCollector right (8034120 failed)
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-03-03
  • Updated: 2016-05-27
  • Resolved: 2014-03-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u20Fixed 9 b06Fixed
Related Reports
Duplicate :  
Relates :  
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" }}
Comments
Fix for JDK-8034120 failed.
03-03-2014