findVirtual problem
Raffaello Giulietti
raffaello.giulietti at gmail.com
Tue Aug 18 06:07:59 PDT 2009
Christian Thalinger wrote:
> Attila Szegedi wrote:
>> Shouldn't that be
>>
>> mh.<String,Object>invoke("foo")
>>
>> ? It returns a String and takes an Object.
>
> No, the syntax is correct. A MethodHandle invoke only specifies the
> return type.
>
> -- Christian
> _______________________________________________
> mlvm-dev mailing list
> mlvm-dev at openjdk.java.net
> http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev
Hi Christian,
do an upcast
String result = mh.<String>invoke((Object) "foo");
More information about the mlvm-dev
mailing list