RFR: Intentionally removed ACC_SUPER class modifier was causing hotswap to fail
Jiří Vaněk
jvanek at openjdk.org
Sat Jul 30 14:29:24 UTC 2022
On Sat, 30 Jul 2022 13:42:14 GMT, Jiří Vaněk <jvanek at openjdk.org> wrote:
> 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
Good. I had added test which ensures taht super is not printed out, if it was not in original code
-------------
PR: https://git.openjdk.org/asmtools/pull/26
More information about the asmtools-dev
mailing list