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

changeset 674
584365f256a7
parent 657
70ebdef189c9
child 700
7b413ac1a720
equal deleted inserted replaced
673:7ae4016c5938 674:584365f256a7
650 if ((flags & ANNOTATION) != 0 && !target.useAnnotationFlag()) { 650 if ((flags & ANNOTATION) != 0 && !target.useAnnotationFlag()) {
651 int alenIdx = writeAttr(names.Annotation); 651 int alenIdx = writeAttr(names.Annotation);
652 endAttr(alenIdx); 652 endAttr(alenIdx);
653 acount++; 653 acount++;
654 } 654 }
655 if ((flags & POLYMORPHIC_SIGNATURE) != 0) {
656 if (target.majorVersion < 51)
657 throw new AssertionError("PolymorphicSignature attributes in java/dyn must be written with -target 7 (required major version is 51, current is"+target.majorVersion+")");
658 int alenIdx = writeAttr(names.PolymorphicSignature);
659 endAttr(alenIdx);
660 acount++;
661 }
662 return acount; 655 return acount;
663 } 656 }
664 657
665 /** Write member (field or method) attributes; 658 /** Write member (field or method) attributes;
666 * return number of attributes written. 659 * return number of attributes written.

mercurial