RFR: 8373983: java/util/Locale/UseOldISOCodesTest.java fails with JTREG_AOT_JDK=onestep
Alan Bateman
alanb at openjdk.org
Tue Dec 23 08:33:10 UTC 2025
On Mon, 22 Dec 2025 18:06:30 GMT, Naoto Sato <naoto at openjdk.org> 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.
>
> Looks fine
@naotoj java.locale.useOldISOCodes was added as a compatibility switch in JDK 17. Do you have any sense as to whether it is used? I'm just wondering if if the "no longer supported" warning when the property is specified on the command line is worth it.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28938#issuecomment-3685715503
More information about the core-libs-dev
mailing list