<i18n dev> RFR: 8357281: sun.util.Locale.LanguageTag should be immutable [v3]

Justin Lu jlu at openjdk.org
Fri May 23 17:46:58 UTC 2025


On Thu, 22 May 2025 17:51:32 GMT, Justin Lu <jlu at openjdk.org> wrote:

>> _sun.util.Locale.LanguageTag_ is essentially a BCP47 language tag data carrier for Locale. The class, once created is not modified; the class should be made immutable. Converting the class to a record accomplishes this and also simplifies some of the existing code.
>
> Justin Lu 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:
> 
>  - extLangs -> extlangs
>  - Merge branch 'master' into JDK-8357281-LanguageTag
>  - review: subtag -> subtags, switch on baseLang, improve fragility of list field accessors
>  - init

Thanks for the reviews!

-------------

PR Comment: https://git.openjdk.org/jdk/pull/25371#issuecomment-2905306305


More information about the i18n-dev mailing list