Mercurial > hg > truffle
diff src/share/vm/classfile/classFileParser.cpp @ 1507:cd5dbf694d45
6939134: JSR 292 adjustments to method handle invocation
Summary: split MethodHandle.invoke into invokeExact and invokeGeneric; also clean up JVM-to-Java interfaces
Reviewed-by: twisti
author | jrose |
---|---|
date | Sat, 01 May 2010 02:42:18 -0700 |
parents | b9d85fcdf743 |
children | df736661d0c8 |
line wrap: on
line diff
--- a/src/share/vm/classfile/classFileParser.cpp Fri Apr 30 08:37:24 2010 -0700 +++ b/src/share/vm/classfile/classFileParser.cpp Sat May 01 02:42:18 2010 -0700 @@ -1837,7 +1837,8 @@ _has_vanilla_constructor = true; } - if (EnableMethodHandles && m->is_method_handle_invoke()) { + if (EnableMethodHandles && (m->is_method_handle_invoke() || + m->is_method_handle_adapter())) { THROW_MSG_(vmSymbols::java_lang_VirtualMachineError(), "Method handle invokers must be defined internally to the VM", nullHandle); }