RFR: 8298065: Provide more information in message of NoSuchFieldError [v4]
David Holmes
dholmes at openjdk.org
Fri Dec 23 03:41:47 UTC 2022
On Thu, 22 Dec 2022 21:40:21 GMT, Ioi Lam <iklam at openjdk.org> wrote:
>> Compiling each jasm file after the main file, IS the easiest way to run it outside jtreg.
>
> Here we have very simple conditions to test, so there's no need for NoSuchFieldOutputTest.java to access FieldName.java at all. That's why I propose that all the error conditions should be implemented inside the jasm files alone. NoSuchFieldOutputTest.java can just refer to the error class by name.
Okay so rather than generate the NSFE by separate compilation, Ioi is suggesting the jasm code can reference a non-existent field directly and so throw NSFE. That works too and the test can be re-run stand-alone.
-------------
PR: https://git.openjdk.org/jdk/pull/11745
More information about the hotspot-runtime-dev
mailing list