equal
deleted
inserted
replaced
1713 |
1713 |
1714 for (Attribute.TypeCompound ta : meth.typeAnnotations) { |
1714 for (Attribute.TypeCompound ta : meth.typeAnnotations) { |
1715 if (ta.position.pos == treePos) { |
1715 if (ta.position.pos == treePos) { |
1716 ta.position.offset = code.cp; |
1716 ta.position.offset = code.cp; |
1717 ta.position.lvarOffset[0] = code.cp; |
1717 ta.position.lvarOffset[0] = code.cp; |
|
1718 ta.position.isValidOffset = true; |
1718 } |
1719 } |
1719 } |
1720 } |
1720 |
1721 |
1721 if (code.meth.getKind() != ElementKind.CONSTRUCTOR |
1722 if (code.meth.getKind() != ElementKind.CONSTRUCTOR |
1722 && code.meth.getKind() != ElementKind.STATIC_INIT) |
1723 && code.meth.getKind() != ElementKind.STATIC_INIT) |
1724 |
1725 |
1725 for (Attribute.TypeCompound ta : meth.owner.typeAnnotations) { |
1726 for (Attribute.TypeCompound ta : meth.owner.typeAnnotations) { |
1726 if (ta.position.pos == treePos) { |
1727 if (ta.position.pos == treePos) { |
1727 ta.position.offset = code.cp; |
1728 ta.position.offset = code.cp; |
1728 ta.position.lvarOffset[0] = code.cp; |
1729 ta.position.lvarOffset[0] = code.cp; |
|
1730 ta.position.isValidOffset = true; |
1729 } |
1731 } |
1730 } |
1732 } |
1731 |
1733 |
1732 ClassSymbol clazz = meth.enclClass(); |
1734 ClassSymbol clazz = meth.enclClass(); |
1733 for (Symbol s : new com.sun.tools.javac.model.FilteredMemberList(clazz.members())) { |
1735 for (Symbol s : new com.sun.tools.javac.model.FilteredMemberList(clazz.members())) { |
1735 continue; |
1737 continue; |
1736 for (Attribute.TypeCompound ta : s.typeAnnotations) { |
1738 for (Attribute.TypeCompound ta : s.typeAnnotations) { |
1737 if (ta.position.pos == treePos) { |
1739 if (ta.position.pos == treePos) { |
1738 ta.position.offset = code.cp; |
1740 ta.position.offset = code.cp; |
1739 ta.position.lvarOffset[0] = code.cp; |
1741 ta.position.lvarOffset[0] = code.cp; |
|
1742 ta.position.isValidOffset = true; |
1740 } |
1743 } |
1741 } |
1744 } |
1742 } |
1745 } |
1743 } |
1746 } |
1744 |
1747 |