RFR: Intentionally removed ACC_SUPER class modifier was causing hotswap to fail [v2]
Leonid Kuskov
lkuskov at openjdk.org
Thu Aug 11 19:25:36 UTC 2022
On Sat, 30 Jul 2022 14:29:23 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
>
> 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
The problem with initialized fields has been found - this is a reason of the gson issue. the defect is under fixing https://bugs.openjdk.org/browse/CODETOOLS-7903248
-------------
PR: https://git.openjdk.org/asmtools/pull/26
More information about the asmtools-dev
mailing list