Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902686

Jasm incorrectly sets up the SourceFile attribute on Windows platform

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: asm_tools_7.0
    • Fix Version/s: asm_tools_7.0
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Introduced In Build:
      b08
    • Introduced In Version:
    • Resolved In Build:
      b09

      Description

      ClassData::endClass()
           sourceFileNameAttr = new CPXAttr(this,
                      AttrTag.ATT_SourceFile.parsekey(),
                      pool.FindCellAsciz(env.getSimpleInputFileName()));

      env.getSimpleInputFileName() returns full name on Windows platform

      Example.class on Windows is
      ...
       Utf8 "C:\ade\mesos\work_dir\jib-master\install\2020-06-02-1947519.igor.ignatyev.jdk\src.full\open\test\hotspot\jtreg\runtime\condy\staticInit\Example.jasm"; // #11
      ...
      [] { // Attributes
          Attr(#15) { // SourceFile
            #11;
          } // end SourceFile

      should be:
      ...
       Utf8 "Example.jasm"; // #11
      ...
      [] { // Attributes
          Attr(#15) { // SourceFile
            #11;
          } // end SourceFile

        Attachments

          Activity

            People

            Assignee:
            lkuskov Leonid Kuskov
            Reporter:
            lkuskov Leonid Kuskov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: