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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 1.4.0_03
    • Affects Version/s: 1.4.0, 1.4.1
    • Component/s: 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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: