hotspot/src/share/vm/classfile/verifier.cpp
changeset 7382 e1ed8c9e12e5
parent 7380 041cf7f1cce6
parent 7114 65d21c4c6337
child 7397 5b173b4ca846
--- a/hotspot/src/share/vm/classfile/verifier.cpp	Fri Nov 05 09:32:08 2010 -0400
+++ b/hotspot/src/share/vm/classfile/verifier.cpp	Fri Nov 12 09:37:13 2010 -0500
@@ -1908,7 +1908,7 @@
   unsigned int types = (opcode == Bytecodes::_invokeinterface
                                 ? 1 << JVM_CONSTANT_InterfaceMethodref
                       : opcode == Bytecodes::_invokedynamic
-                                ? (1 << JVM_CONSTANT_NameAndType
+                                ? ((AllowTransitionalJSR292 ? 1 << JVM_CONSTANT_NameAndType : 0)
                                   |1 << JVM_CONSTANT_InvokeDynamic)
                                 : 1 << JVM_CONSTANT_Methodref);
   verify_cp_type(index, cp, types, CHECK_VERIFY(this));