Create a .java file containing the following text:
------- A.java -------
class A {
}
class B {
}
class C {
}
------- A.java -------
If you compile this file and then look at the A.class file you will find
entries in its constant pool for the B and C classes even though those
classes have no dependencies or runtime relationship to the A class. This
causes some bloat of each of the class files.
------- A.java -------
class A {
}
class B {
}
class C {
}
------- A.java -------
If you compile this file and then look at the A.class file you will find
entries in its constant pool for the B and C classes even though those
classes have no dependencies or runtime relationship to the A class. This
causes some bloat of each of the class files.
- relates to
-
JDK-4217205 links to unrelated classes defined in same source file
- Closed