com.sun.tools.javac.main.JavaCompiler's "to do" list

After the source files have been parsed, and their symbols entered in the symbol table, the top level classes and some other items end up on JavaCompiler's "to do" list.

For each entry on the "to do" list, JavaCompiler processes it as follows:

Issues

The "to do" list is mostly organized by top level classes, and not by compilation units. This means that if a compilation unit contains several classes, it is possible for code to be generated for some of the classes in the file, at which point at error may be detected for one of the remaining classes, preventing code from being generated for that and any subsequent classes. This means that the compilation unit will be partially compiled, with some but not all of the class files being generated. (Bug 5011101)