1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Annotate.java Mon Oct 14 12:38:09 2013 -0700 1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Annotate.java Mon Oct 14 22:11:09 2013 +0200 1.3 @@ -92,6 +92,7 @@ 1.4 ListBuffer<Annotator> typesQ = new ListBuffer<Annotator>(); 1.5 ListBuffer<Annotator> repeatedQ = new ListBuffer<Annotator>(); 1.6 ListBuffer<Annotator> afterRepeatedQ = new ListBuffer<Annotator>(); 1.7 + ListBuffer<Annotator> validateQ = new ListBuffer<Annotator>(); 1.8 1.9 public void earlier(Annotator a) { 1.10 q.prepend(a); 1.11 @@ -113,6 +114,10 @@ 1.12 afterRepeatedQ.append(a); 1.13 } 1.14 1.15 + public void validate(Annotator a) { 1.16 + validateQ.append(a); 1.17 + } 1.18 + 1.19 /** Called when the Enter phase starts. */ 1.20 public void enterStart() { 1.21 enterCount++; 1.22 @@ -140,6 +145,9 @@ 1.23 while (afterRepeatedQ.nonEmpty()) { 1.24 afterRepeatedQ.next().enterAnnotation(); 1.25 } 1.26 + while (validateQ.nonEmpty()) { 1.27 + validateQ.next().enterAnnotation(); 1.28 + } 1.29 } finally { 1.30 enterCount--; 1.31 }