MethodHandle#invokeExact(Object...)
is a strange method in Java.
Suppose I wanted to invoke this from ByteBuddy (using MethodCall.invoke()
and the like). Is there a way to do this without incurring a runtime exception? (Please bear in mind in any answers to this question that although it looks like it takes an ordinary Object
array, MethodHandle#invokeExact(Object...)
treats that argument very unusually.)