review request (S): 7042656: JSR292: invokeExact/Generic doesn't throw UnsupportedOperationException if invoked via Method.invoke
John Rose
john.r.rose at oracle.com
Tue May 17 12:20:48 PDT 2011
Thanks, Tom. -- John
On May 17, 2011, at 11:21 AM, Tom Rodriguez wrote:
> Looks good.
>
> tom
>
> On May 17, 2011, at 4:45 AM, John Rose wrote:
>
>> This is a point fix to make the native methods MethodHandle.invoke and .invokeExact throw UnsupportedOperationException.
>>
>> Currently they throw a linkage exception, because they are not actually defined by C code. (They are defined by Java, but when called fail to link. This UOE is the documented exception type.)
>>
>> http://cr.openjdk.java.net/~jrose/7044892/webrev.jvm.00/src/share/vm/prims/methodHandles.cpp.udiff.html
>>
>> Because this is an exception error, it is bundled with bug 7044892. This is a separate review because it is a JVM code change.
>>
>> -- John
>
More information about the hotspot-compiler-dev
mailing list