hotspot/src/share/vm/classfile/classFileParser.cpp
changeset 5420 586d3988e72b
parent 5250 ea743ca75cd9
child 5426 470c15eda401
--- a/hotspot/src/share/vm/classfile/classFileParser.cpp	Fri Apr 30 08:37:24 2010 -0700
+++ b/hotspot/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);
   }