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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.0, 1.4.1
    • Fix Version/s: 1.4.0_03
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      03
    • CPU:
      generic, x86, sparc
    • OS:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: