RFR: 8321206: Make Locale related system properties `StaticProperty` [v2]
Naoto Sato
naoto at openjdk.org
Fri Dec 8 21:14:23 UTC 2023
On Wed, 6 Dec 2023 20:55:48 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> Currently, Locale-related system properties, such as `user.language` or `user.country`, are initialized when the `Locale` class is loaded. Making them static properties is safer than relying on the `Locale` class loading timing, which could potentially be changed depending on the implementation.
>
> Naoto Sato has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
>
> - Reflects review comments
> - Merge branch 'master' into JDK-8321206-Locale-static-properties
> - Add exclusions in cdsHeapVerifier for new StaticProperties
> - initial commit
Can you elaborate on it more? I don't think it is possible to change the default locale by modifying those system properties via the `setProperty()` call in recent JDK releases.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16986#issuecomment-1847848415
More information about the core-libs-dev
mailing list