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

Jasm incorrectly sets up the SourceFile attribute on Windows platform

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • asm_tools_7.0
    • asm_tools_7.0
    • tools
    • None
    • b08
    • b09

      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

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

              Created:
              Updated:
              Resolved: