On Wed, 21 May 2025 21:19:36 GMT, Justin Lu <j...@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. This pull request has now been integrated. Changeset: 2f530f89 Author: Justin Lu <j...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/2f530f89e0ee5ed5253125d0e9319b07103173f0 Stats: 191 lines in 3 files changed: 22 ins; 80 del; 89 mod 8357281: sun.util.Locale.LanguageTag should be immutable Reviewed-by: naoto, liach ------------- PR: https://git.openjdk.org/jdk/pull/25371