Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4067806

Class files contain data from unrelated classes defined in same source file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.2.0
    • 1.2.0
    • tools
    • None
    • 1.2beta3
    • sparc
    • solaris_2.5.1
    • Not verified

      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.

            tturnidgsunw Todd Turnidge (Inactive)
            flar Jim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: