changeset 2203:c26f5536d869

Always set the annotation attribute. Clarify comment.
author wmdietl
date Sun, 17 Feb 2013 19:17:51 -0800
parents e4c3c5391aaf
children b06816794394
files src/share/classes/com/sun/tools/javac/comp/Annotate.java
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/comp/Annotate.java	Sun Feb 17 19:16:20 2013 -0800
+++ b/src/share/classes/com/sun/tools/javac/comp/Annotate.java	Sun Feb 17 19:17:51 2013 -0800
@@ -266,11 +266,10 @@
                            ((MethodSymbol)method, value));
             t.type = result;
         }
-        // TODO: this should be a TypeCompound if "a" is a JCTypeAnnotation.
-        // However, how do we find the correct position?
+        // TODO: this should be a TypeCompound if "a" has Tag.TYPE_ANNOTATION.
+        // Also, see enterTypeAnnotation.
         Attribute.Compound ac = new Attribute.Compound(a.type, buf.toList());
-        // TODO: is this something we want? Who would use it?
-        // a.attribute = ac;
+        a.attribute = ac;
         return ac;
     }