Few questions about invokeDynamic
forax at univ-mlv.fr
Sat Nov 6 12:28:18 PDT 2010
Le 06/11/2010 17:36, assembling signals a écrit :
> Remi, thank you a lot for such a quick reply!
> I tried to do what you suggested, but it keeps failing.
> Note, that I don't use some customized build, but instead, as also mentionen in previous mail, JDK7 b116.
> Could you please try the code by yourself? It's a single class.
> Thanks again!
You've spot a bug:
(int) methodHandle.invokeExact(); // error: not a statement
The compiler should consider it as a statement, like it does
If you use a dummy variable, it works:
foo = (int)InvokeDynamic.anything();
foo = (int)methodHandle.invokeExact(); // warning: unchecked
generic array creation
foo = (int) methodHandle.invokeExact(); // error: not a statement
More information about the mlvm-dev