diff -r 95cd788badb7 -r 470c15eda401 hotspot/src/share/vm/classfile/classFileParser.cpp --- a/hotspot/src/share/vm/classfile/classFileParser.cpp Mon May 10 14:58:38 2010 -0700 +++ b/hotspot/src/share/vm/classfile/classFileParser.cpp Tue May 11 15:19:19 2010 -0700 @@ -1838,7 +1838,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); }