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. |