Bug 28957 - AspectJ ajc compiler limited to 1000 source files
Summary: AspectJ ajc compiler limited to 1000 source files
Status: RESOLVED DUPLICATE of bug 28956
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jim Hugunin CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-02 16:01 EST by Per S Hustad CLA
Modified: 2003-01-03 07:24 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Per S Hustad CLA 2003-01-02 16:01:19 EST
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
Comment 1 Per S Hustad CLA 2003-01-03 07:24:16 EST

*** This bug has been marked as a duplicate of 28956 ***