changeset 1043:fb84cfca28a1

7039019: test cannot run standalone Reviewed-by: dlsmith
author jjg
date Mon, 25 Apr 2011 15:50:30 -0700
parents 671bb63f3ed5
children 4c5f13798b8d
files test/tools/javac/processing/model/TestSymtabItems.java
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/test/tools/javac/processing/model/TestSymtabItems.java	Tue Apr 19 13:57:25 2011 +0100
+++ b/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);