Draft: Deprecate toLowerCase()/toUpperCase() and provide locale insensitive alternative

Alan Bateman Alan.Bateman at oracle.com
Sat Apr 15 07:04:28 UTC 2023


On 13/04/2023 15:58, Glavo wrote:
> :
>
> I thought it might be more efficient to discuss after creating a draft PR.
> It seems that it is difficult to attract more experts to participate 
> in the
> discussion only on the mailing list. Do you have any suggestions for this?
>

This proposal is not something to be hurried. It could be massively 
disruptive change and would need to be looked at in the context of all 
APIs that use the default locale. It would also need to be looked at in 
the context of new developers starting out and just wanting to get a toy 
program working. It might be confusing for new developers to find 
themselves using a neutral locale. If a new developer is forced to 
choose between Locale.ROOT and Locale.getDefault() during their first 
week of coding then it will give a terrible first impression.

One of your messages lists cleaning up usages in the JDK. Auditing the 
usages to identify any cases that should be changed from using the 
default locale to Locale.ROOT would be a contribution. So if you have 
the energy to do that they it would be useful to start.

-Alan.


More information about the core-libs-dev mailing list