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 04:45:21 PDT 2011
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