src/share/classes/com/sun/tools/javac/main/Main.java

Print this page

        

*** 382,392 **** --- 382,403 ---- List<JavaFileObject> fileObjects, Iterable<? extends Processor> processors) { context.put(Log.outKey, out); log = Log.instance(context); + return compile(args, classNames, context, + fileObjects, processors, log); + } + // Added to allow tests to install their own log subclasses + public Result compile(String[] args, + String[] classNames, + Context context, + List<JavaFileObject> fileObjects, + Iterable<? extends Processor> processors, + Log log) + { if (options == null) options = Options.instance(context); // creates a new one filenames = new LinkedHashSet<File>(); classnames = new ListBuffer<String>();