review request (S): 7042656: JSR292: invokeExact/Generic doesn't throw UnsupportedOperationException if invoked via Method.invoke

Tom Rodriguez tom.rodriguez at oracle.com
Tue May 17 11:21:30 PDT 2011


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