RFR: 8294976: Convert Runtime classes to use the ClassFile API instead of ASM [v5]

Chen Liang liach at openjdk.org
Wed Mar 13 15:58:16 UTC 2024


On Wed, 13 Mar 2024 15:48:36 GMT, Oussama Louati <duke at openjdk.org> wrote:

>> 8294976: Convert Runtime classes to use the ClassFile API instead of ASM
>
> Oussama Louati has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add --enable-preview to use classFile API, and fix test failing.

test/hotspot/jtreg/runtime/verifier/OverriderMsg.java line 99:

> 97: 
> 98:                         .withMethod(INIT_NAME, MTD_void, ACC_PUBLIC,
> 99:                                 mb -> mb.withCode(

If you only add code to a method, you can use the `withMethodBody` shorthand instead of `withMethod` plus `withCode`

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

PR Review Comment: https://git.openjdk.org/jdk/pull/18271#discussion_r1523527011


More information about the hotspot-runtime-dev mailing list