MethodHandle.invoke* should only work with source 1.7
Rémi Forax
forax at univ-mlv.fr
Fri Feb 11 01:42:59 PST 2011
On 02/11/2011 10:10 AM, John Rose wrote:
> On Feb 11, 2011, at 12:57 AM, Rémi Forax wrote:
>
>> Anyway, I wonder why hotspot works when it find a Methodhandle.invoke*
>> in a 1.6 classfile.
>
> Interesting question. I suppose it should hook up to the native
> method which (as the EG has decided) will throw
> UnsupportedOperationException, rather than try to guess at the lost
> type descriptor.
>
> -- John
Or throws a VerifyError before.
Rémi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/mlvm-dev/attachments/20110211/9685499a/attachment.html
More information about the mlvm-dev
mailing list