Duplicate :
|
Sometimes MethodHandles.asSpreader() reports: java.lang.UnsupportedOperationException: NYI at java.lang.invoke.SpreadGeneric.buildAdapterFromBytecodes(SpreadGeneric.java:199) at java.lang.invoke.SpreadGeneric.<init>(SpreadGeneric.java:65) at java.lang.invoke.SpreadGeneric.of(SpreadGeneric.java:121) at java.lang.invoke.SpreadGeneric.make(SpreadGeneric.java:100) at java.lang.invoke.MethodHandleImpl.spreadArguments(MethodHandleImpl.java:723) at java.lang.invoke.MethodHandles.spreadArguments(MethodHandles.java:1563) at java.lang.invoke.MethodHandle.asSpreader(MethodHandle.java:740)