Duplicate :
|
|
Relates :
|
|
Relates :
|
The following exception is throws when calling MethodHandles.filterArguments() with parameters where primitives are placed before references: java.lang.UnsupportedOperationException: NYI: primitive parameters must follow references; entryType = (int,Object,Object)Object at java.lang.invoke.ToGeneric.<init>(ToGeneric.java:98) at java.lang.invoke.ToGeneric.of(ToGeneric.java:253) at java.lang.invoke.ToGeneric.make(ToGeneric.java:245) at java.lang.invoke.MethodHandleImpl.convertArguments(MethodHandleImpl.java:693) at java.lang.invoke.MethodHandles.filterArguments(MethodHandles.java:1877)