< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTaskPool.java

Print this page
rev 58568 : [mq]: hidden-class-4

@@ -66,16 +66,18 @@
 import com.sun.tools.javac.comp.Enter;
 import com.sun.tools.javac.comp.Modules;
 import com.sun.tools.javac.main.Arguments;
 import com.sun.tools.javac.main.JavaCompiler;
 import com.sun.tools.javac.model.JavacElements;
+import com.sun.tools.javac.platform.PlatformDescription;
 import com.sun.tools.javac.tree.JCTree.JCClassDecl;
 import com.sun.tools.javac.tree.JCTree.LetExpr;
 import com.sun.tools.javac.util.Context;
 import com.sun.tools.javac.util.DefinedBy;
 import com.sun.tools.javac.util.DefinedBy.Api;
 import com.sun.tools.javac.util.Log;
+import com.sun.tools.javac.util.Options;
 
 /**
  * A pool of reusable JavacTasks. When a task is no valid anymore, it is returned to the pool,
  * and its Context may be reused for future processing in some cases. The reuse is achieved
  * by replacing some components (most notably JavaCompiler and Log) with reusable counterparts,

@@ -250,10 +252,11 @@
             drop(Log.errKey);
             drop(JavaFileManager.class);
             drop(JavacTask.class);
             drop(JavacTrees.class);
             drop(JavacElements.class);
+            drop(PlatformDescription.class);
 
             if (ht.get(Log.logKey) instanceof ReusableLog) {
                 //log already inited - not first round
                 ((ReusableLog)Log.instance(this)).clear();
                 Enter.instance(this).newRound();

@@ -264,10 +267,11 @@
                 Preview.instance(this).clear(); //clear mandatory warning handlers
                 Modules.instance(this).newRound();
                 Annotate.instance(this).newRound();
                 CompileStates.instance(this).clear();
                 MultiTaskListener.instance(this).clear();
+                Options.instance(this).clear();
 
                 //find if any of the roots have redefined java.* classes
                 Symtab syms = Symtab.instance(this);
                 pollutionScanner.scan(roots, syms);
                 roots.clear();
< prev index next >