langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java Thu Jan 19 19:14:51 2017 -0800
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/main/JavaCompiler.java Fri Jan 20 09:26:49 2017 +0100
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1999, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -363,7 +363,7 @@
**/
protected boolean implicitSourceFilesRead;
- protected boolean enterDone;
+ private boolean enterDone;
protected CompileStates compileStates;
@@ -1042,7 +1042,7 @@
public List<JCCompilationUnit> initModules(List<JCCompilationUnit> roots) {
modules.initModules(roots);
if (roots.isEmpty()) {
- enterDone = true;
+ enterDone();
}
return roots;
}
@@ -1063,7 +1063,7 @@
enter.main(roots);
- enterDone = true;
+ enterDone();
if (!taskListener.isEmpty()) {
for (JCCompilationUnit unit: roots) {
@@ -1725,6 +1725,11 @@
}
}
+ public void enterDone() {
+ enterDone = true;
+ annotate.enterDone();
+ }
+
public boolean isEnterDone() {
return enterDone;
}