-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
19
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
Currently, creating a `MethodType` that takes more than 1 parameter requires calling the varargs overload `MethodType.methodType(Class, Class, Class...)`, requiring an additional array allocation by the caller (at least untilJDK-8164891 is implemented for varargs bridges).
There already are overloads for 0 and 1 parameter respectively.
I propose adding additional overloads for up to 10 parameters (matching the `List.of(…)`, `Map.of(…)`, and `Set.of(…)` overloads).
Currently, creating a `MethodType` that takes more than 1 parameter requires calling the varargs overload `MethodType.methodType(Class, Class, Class...)`, requiring an additional array allocation by the caller (at least until
There already are overloads for 0 and 1 parameter respectively.
I propose adding additional overloads for up to 10 parameters (matching the `List.of(…)`, `Map.of(…)`, and `Set.of(…)` overloads).