RFR: 8357281: sun.util.Locale.LanguageTag should be immutable [v2]

Steven Loomis srl at openjdk.org
Thu May 22 17:32:53 UTC 2025


On Thu, 22 May 2025 16:46:10 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 incrementally with one additional commit since the last revision:
> 
>   review: subtag -> subtags, switch on baseLang, improve fragility of list field accessors

@yumaoka

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

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


More information about the core-libs-dev mailing list