Effects of nested classes
Understand the effects of the nested classes.
A Java class can be declared inside another class. For example:
class A {
class inner {
[...class definitions...]
}
[...class definitions...]
}
The compiler writes the code for nested classes into a separate .class file,
whose file name is <parent_class_name> $
<nested_class_name>. In the previous example, the
compiler writes A.class
and A$inner.class
.
clearmake does not create .class.dep files for inner
classes. The .class.dep files are intended to declare only the
dependencies of classes of one .java
file on classes of another
.java
file. Inner .class files are always siblings.
The use of anonymous inner classes, which have a compiler-generated name, is handled in the
same way.