JDK-8185993 : MethodHandle.invokeWithArguments jumbo-arity
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2017-08-08
  • Updated: 2017-09-29
  • Resolved: 2017-09-22
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 10
10 b25Fixed
Related Reports
Blocks :  
Blocks :  
CSR :  
Description
Update the specification and implementation of MethodHandle.invokeWithArguments to support an arity of more than 251 (referred to as jumbo-arity) if the method handle has variable arity with the trailing parameter, whereby additional arguments will be accumulated into an array of the appropriate type with appropriate asType conforming conversions.

Update bootstrap method invocation to invoke a bootstrap method handle with MethodHandle.invokeWithArguments instead of MethodHandle.invoke when the number arguments is large and would otherwise result in a BootstrapMethodError (the invoke is equivalent to .invokeWithArguments if the number of arguments is below the currently supported maximum limit).
Comments
http://cr.openjdk.java.net/~psandoz/jdk10/JDK-8185992-invoke-with-arguments-jumbo/webrev/
08-08-2017