review request (S): 7042656: JSR292: invokeExact/Generic doesn't throw UnsupportedOperationException if invoked via Method.invoke
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.)
Because this is an exception error, it is bundled with bug 7044892. This is a separate review because it is a JVM code change.
More information about the hotspot-compiler-dev