hotspot/src/share/vm/classfile/verifier.cpp
changeset 6062 bab93afe9df7
parent 5882 6b2aecc4f7d8
child 6173 c0c872cc6064
--- a/hotspot/src/share/vm/classfile/verifier.cpp	Thu Jul 15 08:54:48 2010 -0700
+++ b/hotspot/src/share/vm/classfile/verifier.cpp	Thu Jul 15 18:40:45 2010 -0700
@@ -1913,7 +1913,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));