comparison 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
comparison
equal deleted inserted replaced
1506:2338d41fbd81 1507:cd5dbf694d45
1835 signature() == vmSymbols::void_method_signature() && 1835 signature() == vmSymbols::void_method_signature() &&
1836 m->is_vanilla_constructor()) { 1836 m->is_vanilla_constructor()) {
1837 _has_vanilla_constructor = true; 1837 _has_vanilla_constructor = true;
1838 } 1838 }
1839 1839
1840 if (EnableMethodHandles && m->is_method_handle_invoke()) { 1840 if (EnableMethodHandles && (m->is_method_handle_invoke() ||
1841 m->is_method_handle_adapter())) {
1841 THROW_MSG_(vmSymbols::java_lang_VirtualMachineError(), 1842 THROW_MSG_(vmSymbols::java_lang_VirtualMachineError(),
1842 "Method handle invokers must be defined internally to the VM", nullHandle); 1843 "Method handle invokers must be defined internally to the VM", nullHandle);
1843 } 1844 }
1844 1845
1845 return m; 1846 return m;