RFR: Intentionally removed ACC_SUPER class modifier was causing hotswap to fail [v2]

Jiří Vaněk jvanek at openjdk.org
Sat Jul 30 14:29:23 UTC 2022


> When jasm's  disasm, modify, asm cycle output binary was used for class
> hotswap, remote JDK was not accepting it with java.lang.UnsupportedOperationException:
> class redefinition failed: attempted to change the class modifiers
> beacuse of ommited supoer keyword (although it have already no real
> reason)
> 
> This patch is returning the keyword without conditions, when it was
> included in original bytecode

Jiří Vaněk has updated the pull request incrementally with one additional commit since the last revision:

  extended test to verify that super is not used always
  
  if super is not in source code, then it is not in disambled code

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

Changes:
  - all: https://git.openjdk.org/asmtools/pull/26/files
  - new: https://git.openjdk.org/asmtools/pull/26/files/1540927a..9c594785

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=asmtools&pr=26&range=01
 - incr: https://webrevs.openjdk.org/?repo=asmtools&pr=26&range=00-01

  Stats: 39 lines in 1 file changed: 36 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/asmtools/pull/26.diff
  Fetch: git fetch https://git.openjdk.org/asmtools pull/26/head:pull/26

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


More information about the asmtools-dev mailing list