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

javac compiler incorrectly inserts <clinit> when -g is specified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0_03
    • 1.4.0, 1.4.1
    • tools
    • 03
    • generic, x86, sparc
    • generic, solaris_8, windows_2000, windows_xp

        JDK 1.4 javac compiler incorrectly inserts <clinit> into class files when -g is specified. An example is java.text.ChoiceFormat. The additional <clinit> causes the computed serializationUID different from what is expected, which causes incompatibility problem.

              gafter Neal Gafter (Inactive)
              jiangli Jiangli Zhou
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: