[Proposal] Make toLowerCase and toUpperCase based on Locale.ROOT by default
Alan Bateman
Alan.Bateman at oracle.com
Fri Jan 27 11:53:19 UTC 2023
On 27/01/2023 05:42, Glavo wrote:
> I analyzed the usage of toLowerCase and toUpperCase in OpenJDK more
> carefully,
> and found that none of the use cases really expected locale-sensitive
> behavior
I expected that as there were a number of passes over these use-sites
over the years. That said, if some of the remaining usages can be
changed to specify the locale then it would avoid others puzzling over
them too. Changing them probably needs careful review so changing them
in specific areas or in smaller batches would make it easier for
potential Reviewers.
In any case, I agree with Rémi that changing the existing methods is too
subtle and maybe it's time to look at no-arg replacements.
-Alan
More information about the core-libs-dev
mailing list