Is there a problem with the javadoc for MethodHandles#exactInvoker?

31 views Asked by At

I'm trying to understand the exactInvoker javadoc.

It reads, in part:

For example, to emulate an invokeExact call to a variable method handle M, extract its type T, look up the invoker method X for T, and call the invoker method, as X.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)?

0

There are 0 answers