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

Incorrect SourceFile attributes in java.lang classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.3.1
    • 1.3.1
    • infrastructure
    • beta
    • x86
    • windows_nt

        Name: ssT124754 Date: 01/16/2001

        Execute the following command:
        javap java.lang.String

        Notice that it says:
        Compiled from ../../../src/share/classes/java/lang/String.java

        According to The Java Virtual Machine Specification, section 4.7.2,
        "Only the name of the source file is given by the SourceFile
        attribute. It never represents the name of a directory containing
        the file or an absolute path name for the file. For instance, the
        SourceFile attribute might contain the file name foo.java but
        not the UNIX pathname /home/lindholm/foo.java."

        Debuggers use the SourceFile attribute in class files, and may
        behave incorrectly if the SourceFile attribute is wrong.
        (Review ID: 111759)
        ======================================================================

        2002-01-24
        This bug also causes a problem within Rational Rose. The Java->Reverse Engineering function fails on classes compiled w/ J2SDK 1.3.x due to
        "wrong file format error". (This was confirmed by Rational Tech Support.)

              mr Mark Reinhold
              ssultanasunw Shaheen Sultana (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: