On 01/23/2014 07:18 AM, Sarika Sinha wrote:
Hi,
I wanted to know, if there is a way to know that a method will be invoked using invokeDynamics .

No, apart if you crawle the whole bytecodes but you can not access to the whole bytecodes.

This is to aid the the debugging for Java8 , where Lambda expressions are generated as invokedynamics call. Any info to know if a class was generated by LambdaMetaFactory to generate the synthetic class using MethodHandle ?

You can only do that for serializable lambdas, because only serializable lambdas keep the link between the lambda and the method corresponding to the body of the lambda. Otherwise, it's not specified and relying on hacks is not a good idea because the way it works now will likely to change in an update of jdk8.

But maybe you can describe what you want to do exactly .


Thanks,
Sarika

cheers,
Rémi

--
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jvm-languages+unsubscr...@googlegroups.com.
To post to this group, send email to jvm-languages@googlegroups.com.
Visit this group at http://groups.google.com/group/jvm-languages.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to