7039019: test cannot run standalone
authorjjg
Mon, 25 Apr 2011 15:50:30 -0700
changeset 9594 7296a49d21e6
parent 9593 f917c044e651
child 9595 a7dea6cbd5f7
7039019: test cannot run standalone Reviewed-by: dlsmith
langtools/test/tools/javac/processing/model/TestSymtabItems.java
--- a/langtools/test/tools/javac/processing/model/TestSymtabItems.java	Tue Apr 19 13:57:25 2011 +0100
+++ b/langtools/test/tools/javac/processing/model/TestSymtabItems.java	Mon Apr 25 15:50:30 2011 -0700
@@ -44,6 +44,7 @@
 import com.sun.tools.javac.code.Symbol.ClassSymbol;
 import com.sun.tools.javac.code.Symtab;
 import com.sun.tools.javac.file.JavacFileManager;
+import com.sun.tools.javac.main.JavaCompiler;
 import com.sun.tools.javac.model.JavacTypes;
 import com.sun.tools.javac.util.Context;
 
@@ -62,6 +63,7 @@
         JavacFileManager.preRegister(c);
         Symtab syms = Symtab.instance(c);
         JavacTypes types = JavacTypes.instance(c);
+        JavaCompiler.instance(c);  // will init ClassReader.sourceCompleter
 
 //        print("noSymbol", syms.noSymbol);
 //        print("errSymbol", syms.errSymbol);