langtools/src/share/classes/com/sun/tools/javadoc/ProgramElementDocImpl.java
changeset 14961 e731935052af
parent 14802 969e90f68ac5
--- a/langtools/src/share/classes/com/sun/tools/javadoc/ProgramElementDocImpl.java	Wed Dec 19 11:29:56 2012 +0000
+++ b/langtools/src/share/classes/com/sun/tools/javadoc/ProgramElementDocImpl.java	Sun Dec 16 11:09:36 2012 +0100
@@ -164,9 +164,9 @@
      * Return an empty array if there are none.
      */
     public AnnotationDesc[] annotations() {
-        AnnotationDesc res[] = new AnnotationDesc[sym.getAnnotationMirrors().length()];
+        AnnotationDesc res[] = new AnnotationDesc[sym.getRawAttributes().length()];
         int i = 0;
-        for (Attribute.Compound a : sym.getAnnotationMirrors()) {
+        for (Attribute.Compound a : sym.getRawAttributes()) {
             res[i++] = new AnnotationDescImpl(env, a);
         }
         return res;