1.1 --- a/src/share/classes/com/sun/tools/javac/api/JavacTaskImpl.java Wed Sep 14 12:07:50 2011 -0700 1.2 +++ b/src/share/classes/com/sun/tools/javac/api/JavacTaskImpl.java Wed Sep 14 12:14:30 2011 -0700 1.3 @@ -274,6 +274,9 @@ 1.4 public Iterable<? extends TypeElement> enter(Iterable<? extends CompilationUnitTree> trees) 1.5 throws IOException 1.6 { 1.7 + if (trees == null && notYetEntered != null && notYetEntered.isEmpty()) 1.8 + return List.nil(); 1.9 + 1.10 prepareCompiler(); 1.11 1.12 ListBuffer<JCCompilationUnit> roots = null;