1.1 --- a/src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java Thu Jun 17 16:28:21 2010 -0700 1.2 +++ b/src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java Fri Jun 18 15:12:04 2010 -0700 1.3 @@ -651,6 +651,13 @@ 1.4 endAttr(alenIdx); 1.5 acount++; 1.6 } 1.7 + if ((flags & POLYMORPHIC_SIGNATURE) != 0) { 1.8 + if (target.majorVersion < 51) 1.9 + throw new AssertionError("PolymorphicSignature attributes in java/dyn must be written with -target 7 (required major version is 51, current is"+target.majorVersion+")"); 1.10 + int alenIdx = writeAttr(names.PolymorphicSignature); 1.11 + endAttr(alenIdx); 1.12 + acount++; 1.13 + } 1.14 return acount; 1.15 } 1.16