Community
Participate
Working Groups
The ajc compiler seems to have a limitation of 1000 java source files in one compilation. To reproduce: 1) Generate a lot of empty java source files by compiling and running the following class: **** File AjcTest.java import java.io.*; public class AjcTest { public static void main(String[] args) throws Exception { for (int i = 0; i < 5000; i++) { File f = new File("c:\\temp\\Test" + i + ".java"); FileOutputStream s = new FileOutputStream(f); PrintStream s1 = new PrintStream(s); s1.println("public class Test" + i + " { }" ); s.close(); } } **** End of File AjcTest.java 2) Go to the directory where the source files have been generated and issue the command: ajc -sourceroots "." The number of classfiles generated is 1000, not 5000 as would have been expected Version: ajc -version AspectJ Compiler 1.1b2
*** This bug has been marked as a duplicate of 28956 ***