diff -r d59730bd3162 -r bae8387d16aa src/share/classes/com/sun/tools/javac/model/JavacElements.java --- a/src/share/classes/com/sun/tools/javac/model/JavacElements.java Fri Apr 19 11:10:40 2013 -0700 +++ b/src/share/classes/com/sun/tools/javac/model/JavacElements.java Mon Apr 22 10:24:19 2013 +0200 @@ -402,9 +402,10 @@ * @param e the element being examined * @return all annotations of the element */ + @Override public List getAllAnnotationMirrors(Element e) { Symbol sym = cast(Symbol.class, e); - List annos = sym.getRawAttributes(); + List annos = sym.getAnnotationMirrors(); while (sym.getKind() == ElementKind.CLASS) { Type sup = ((ClassSymbol) sym).getSuperclass(); if (!sup.hasTag(CLASS) || sup.isErroneous() || @@ -413,7 +414,7 @@ } sym = sup.tsym; List oldAnnos = annos; - List newAnnos = sym.getRawAttributes(); + List newAnnos = sym.getAnnotationMirrors(); for (Attribute.Compound anno : newAnnos) { if (isInherited(anno.type) && !containsAnnoOfType(oldAnnos, anno.type)) {