On Sat, 20 Dec 2025 03:15:39 GMT, Ioi Lam <[email protected]> wrote: > This test checks for a warning message that's printed by > `sun.util.locale.BaseLocale.<clinit>` during the AOT cache training run. > Because `BaseLocale` is AOT-initialized, `BaseLocale.<clinit>` is not > executed when the test is running with an AOT cache, so the message is not > printed. > > Since this message was already printed in the AOT training run, it's not > necessary to print it again in the AOT production run. We should exclude the > test case in the `JTREG_AOT_JDK=onestep` test mode.
AFAIK, Google has been using the system property (cf. comments in https://bugs.openjdk.org/browse/JDK-8267069). So I would rather be on the safer side to emit the warning. ------------- PR Comment: https://git.openjdk.org/jdk/pull/28938#issuecomment-3687445514
