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

Transform non-direct MethodHandle to instance of interface

$
0
0

there is a possibility to transform MethodHandle to the instance of LambdaForm via:LambdaMetaFactory.metafactory() and invoke it via invokeinterface call. I know that it is possible to make it for direct MethodHandle. Is it possible to do it for non-direct?

Why I want do it? I have a method m that makes 6 different calls to different composed methods called via invokedynamic. I see that my calls share same LambdaForm and it looks like there is a performance degradation.


Viewing all articles
Browse latest Browse all 36

Trending Articles