Quantcast
Channel: Active questions tagged methodhandle - Stack Overflow
Viewing all articles
Browse latest Browse all 36

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

$
0
0

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)?


Viewing all articles
Browse latest Browse all 36

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>