src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java

changeset 571
f0e3ec1f9d9f
parent 484
732510cc3538
child 573
005bec70ca27
equal deleted inserted replaced
544:98cba5876cb5 571:f0e3ec1f9d9f
649 if ((flags & ANNOTATION) != 0 && !target.useAnnotationFlag()) { 649 if ((flags & ANNOTATION) != 0 && !target.useAnnotationFlag()) {
650 int alenIdx = writeAttr(names.Annotation); 650 int alenIdx = writeAttr(names.Annotation);
651 endAttr(alenIdx); 651 endAttr(alenIdx);
652 acount++; 652 acount++;
653 } 653 }
654 if ((flags & POLYMORPHIC_SIGNATURE) != 0) {
655 if (target.majorVersion < 51)
656 throw new AssertionError("PolymorphicSignature attributes in java/dyn must be written with -target 7 (required major version is 51, current is"+target.majorVersion+")");
657 int alenIdx = writeAttr(names.PolymorphicSignature);
658 endAttr(alenIdx);
659 acount++;
660 }
654 return acount; 661 return acount;
655 } 662 }
656 663
657 /** Write member (field or method) attributes; 664 /** Write member (field or method) attributes;
658 * return number of attributes written. 665 * return number of attributes written.

mercurial