I'm trying to understand the exactInvoker
javadoc.
It reads, in part:
For example, to emulate an
invokeExact
call to a variable method handleM
, extract its typeT
, look up the invoker methodX
forT
, and call the invoker method, asX.invoke(T, A...)
.
Everything makes sense except for the X.invoke(T, A...)
bit.
Shouldn't this be X.invoke(M, A...)
, where M
is the leading MethodHandle
being adapted (and A...
represents its arguments)?