--- a/langtools/src/share/classes/com/sun/tools/javac/main/JavaCompiler.java Mon Aug 23 15:13:33 2010 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/main/JavaCompiler.java Tue Aug 24 11:31:00 2010 -0700
@@ -916,6 +916,15 @@
}
rootClasses = cdefs.toList();
}
+
+ // Ensure the input files have been recorded. Although this is normally
+ // done by readSource, it may not have been done if the trees were read
+ // in a prior round of annotation processing, and the trees have been
+ // cleaned and are being reused.
+ for (JCCompilationUnit unit : roots) {
+ inputFiles.add(unit.sourcefile);
+ }
+
return roots;
}