jasm: FieldData.ConstantValue holds undefined reference to CP while writing fields to a class

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • asm_tools_8.0
    • Affects Version/s: None
    • Component/s: tools
    • None
    • b01
    • b02

      test.jasm
      ....
        const #15 = String #16; // ")]}\'\n"
        const #16 = Asciz ")]}\'\n";
      ...
       private static final Field #23:#24 = String ")]}\'\n"; // TEST:"Ljava/lang/String;"

      will be written
      : 0x1a 0x17 0x18 0x01 0x19 0x02 0xFF although expected
           0x1a 0x17 0x18 0x01 0x19 0x02 0x0F

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

              Created:
              Updated:
              Resolved: