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

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

    XMLWordPrintable

Details

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

    Backports

      Description

        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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: