RFR: 7903558: jasm: Add support this_class, super_class value(s)

Leonid Kuskov lkuskov at openjdk.org
Tue Sep 19 17:49:28 UTC 2023


This is update for enhancement:  [CODETOOLS-7903558](https://bugs.openjdk.org/browse/CODETOOLS-7903558)

 ```
jasm tool should support the values:
this_class (#ID | IDENT); // CLASSNAME
super_class (#ID | IDENT); // SUPERCLASSNAME

Then the command `java -jar asmtools.jar jasm -d . FILE.jasm` where the jasm file is as follows:

class FILENAME.data {
  this_class[:] CLASSNAME;
  super_class[:] SUPERCLASSNAME;
}


will produce a binary file `FILENAME.data` which, after decompiling (`java -jar asmtools.jar jdis FILENAME.data`), will be:

super class CLASSNAME extends SUPERCLASSNAME version 45:0 {}

-------------

Commit messages:
 - 7903558: jasm: Add support this_class, super_class value(s)

Changes: https://git.openjdk.org/asmtools/pull/67/files
 Webrev: https://webrevs.openjdk.org/?repo=asmtools&pr=67&range=00
  Issue: https://bugs.openjdk.org/browse/CODETOOLS-7903558
  Stats: 644 lines in 22 files changed: 593 ins; 4 del; 47 mod
  Patch: https://git.openjdk.org/asmtools/pull/67.diff
  Fetch: git fetch https://git.openjdk.org/asmtools.git pull/67/head:pull/67

PR: https://git.openjdk.org/asmtools/pull/67


More information about the asmtools-dev mailing list