diff -r b024fe427d24 -r 87b5bfef7edb src/share/classes/com/sun/tools/javac/comp/Annotate.java --- a/src/share/classes/com/sun/tools/javac/comp/Annotate.java Mon Oct 14 12:38:09 2013 -0700 +++ b/src/share/classes/com/sun/tools/javac/comp/Annotate.java Mon Oct 14 22:11:09 2013 +0200 @@ -92,6 +92,7 @@ ListBuffer typesQ = new ListBuffer(); ListBuffer repeatedQ = new ListBuffer(); ListBuffer afterRepeatedQ = new ListBuffer(); + ListBuffer validateQ = new ListBuffer(); 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--; }