--- 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);