src/share/classes/com/sun/tools/javac/model/JavacElements.java

changeset 1709
bae8387d16aa
parent 1645
97f6839673d6
child 2525
2eb010b6cb22
     1.1 --- a/src/share/classes/com/sun/tools/javac/model/JavacElements.java	Fri Apr 19 11:10:40 2013 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javac/model/JavacElements.java	Mon Apr 22 10:24:19 2013 +0200
     1.3 @@ -402,9 +402,10 @@
     1.4       * @param e  the element being examined
     1.5       * @return all annotations of the element
     1.6       */
     1.7 +    @Override
     1.8      public List<Attribute.Compound> getAllAnnotationMirrors(Element e) {
     1.9          Symbol sym = cast(Symbol.class, e);
    1.10 -        List<Attribute.Compound> annos = sym.getRawAttributes();
    1.11 +        List<Attribute.Compound> annos = sym.getAnnotationMirrors();
    1.12          while (sym.getKind() == ElementKind.CLASS) {
    1.13              Type sup = ((ClassSymbol) sym).getSuperclass();
    1.14              if (!sup.hasTag(CLASS) || sup.isErroneous() ||
    1.15 @@ -413,7 +414,7 @@
    1.16              }
    1.17              sym = sup.tsym;
    1.18              List<Attribute.Compound> oldAnnos = annos;
    1.19 -            List<Attribute.Compound> newAnnos = sym.getRawAttributes();
    1.20 +            List<Attribute.Compound> newAnnos = sym.getAnnotationMirrors();
    1.21              for (Attribute.Compound anno : newAnnos) {
    1.22                  if (isInherited(anno.type) &&
    1.23                          !containsAnnoOfType(oldAnnos, anno.type)) {

mercurial