RFR: 8328111: Convert Runtime classes to use the ClassFile API instead of ASM [v8]
Oussama Louati
duke at openjdk.org
Thu Mar 14 11:26:38 UTC 2024
On Thu, 14 Mar 2024 10:37:48 GMT, Oussama Louati <duke at openjdk.org> wrote:
>> 8328111: 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:
>
> convert TestMultiANewArray to use classFile API
test/hotspot/jtreg/runtime/verifier/TestMultiANewArray.java line 1:
> 1: /*
Test Description:
The TestMultiANewArray class is a test case designed to verify the functionality of multi-dimensional arrays in Java. The test generates a class file dynamically with a specific class file version (passed as an argument) and a method that creates a two-dimensional integer array using the multianewarray bytecode instruction. The argument controls the class file version passed to the test, which is "52" in the selected code. The generated class file is then written to disk.
Test Outcome:
The test expects a VerifyError to be thrown when running the dynamically generated class. This is because the multianewarray instruction is used to create a two-dimensional array with more than one dimension specified, which is not allowed in certain class file versions. The test checks the process output for the string "VerifyError" and expects the process to exit with a status code of 1, indicating an error. If these conditions are met, the test is considered successful.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/18271#discussion_r1524676291
More information about the hotspot-runtime-dev
mailing list