Three updates were made to improve MethodHandle argument handling for the Java 9 platform. These changes are highlighted as follows:
- Argument folding using foldArguments(MethodHandle target, MethodHandle combinator) did not previously have a position argument.
- Argument collection using the MethodHandle.asCollector(Class<?> arrayType, int arrayLength) method did not previously support collecting the arguments into an array except for the trailing element. This has been changed, and there is now an additional asCollector method to support that functionality in Java 9.
- Argument spreading using the MethodHandle.asSpreader(Class<?> arrayType, int arrayLength) method spreads the contents of the trailing array to a number of ...