--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java Thu Jan 19 19:14:51 2017 -0800
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Annotate.java Fri Jan 20 09:26:49 2017 +0100
@@ -118,6 +118,8 @@
Source source = Source.instance(context);
allowRepeatedAnnos = source.allowRepeatedAnnotations();
sourceName = source.name;
+
+ blockCount = 1;
}
/** Semaphore to delay annotation processing */
@@ -144,6 +146,10 @@
/** are we blocking annotation processing? */
public boolean annotationsBlocked() {return blockCount > 0; }
+ public void enterDone() {
+ unblockAnnotations();
+ }
+
public List<TypeCompound> fromAnnotations(List<JCAnnotation> annotations) {
if (annotations.isEmpty()) {
return List.nil();
@@ -1316,4 +1322,8 @@
}
};
}
+
+ public void newRound() {
+ blockCount = 1;
+ }
}