diff -r f2e8cc8c12ea -r 586d3988e72b hotspot/src/share/vm/classfile/classFileParser.cpp --- 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); }