langtools/src/share/classes/com/sun/tools/javac/comp/Annotate.java
changeset 21018 95d225149128
parent 21015 f3bec12a63e7
child 21040 3e32f68d2151
--- a/langtools/src/share/classes/com/sun/tools/javac/comp/Annotate.java	Mon Oct 14 12:38:09 2013 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/Annotate.java	Mon Oct 14 22:11:09 2013 +0200
@@ -92,6 +92,7 @@
     ListBuffer<Annotator> typesQ = new ListBuffer<Annotator>();
     ListBuffer<Annotator> repeatedQ = new ListBuffer<Annotator>();
     ListBuffer<Annotator> afterRepeatedQ = new ListBuffer<Annotator>();
+    ListBuffer<Annotator> validateQ = new ListBuffer<Annotator>();
 
     public void earlier(Annotator a) {
         q.prepend(a);
@@ -113,6 +114,10 @@
         afterRepeatedQ.append(a);
     }
 
+    public void validate(Annotator a) {
+        validateQ.append(a);
+    }
+
     /** Called when the Enter phase starts. */
     public void enterStart() {
         enterCount++;
@@ -140,6 +145,9 @@
             while (afterRepeatedQ.nonEmpty()) {
                 afterRepeatedQ.next().enterAnnotation();
             }
+            while (validateQ.nonEmpty()) {
+                validateQ.next().enterAnnotation();
+            }
         } finally {
             enterCount--;
         }