hotspot/src/share/vm/classfile/verifier.cpp
changeset 6173 c0c872cc6064
parent 6172 e1d9c632fa3c
parent 6062 bab93afe9df7
child 7114 65d21c4c6337
child 7380 041cf7f1cce6
--- a/hotspot/src/share/vm/classfile/verifier.cpp	Tue Jul 20 08:41:42 2010 -0700
+++ b/hotspot/src/share/vm/classfile/verifier.cpp	Sun Jul 25 07:31:50 2010 -0700
@@ -1909,7 +1909,8 @@
   unsigned int types = (opcode == Bytecodes::_invokeinterface
                                 ? 1 << JVM_CONSTANT_InterfaceMethodref
                       : opcode == Bytecodes::_invokedynamic
-                                ? 1 << JVM_CONSTANT_NameAndType
+                                ? (1 << JVM_CONSTANT_NameAndType
+                                  |1 << JVM_CONSTANT_InvokeDynamic)
                                 : 1 << JVM_CONSTANT_Methodref);
   verify_cp_type(index, cp, types, CHECK_VERIFY(this));