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

Alan Bateman Alan.Bateman at oracle.com
Sat Apr 15 19:07:25 UTC 2023


On 15/04/2023 13:39, Glavo wrote:
> :
>
> I've detailed the reasons for introducing a new API earlier, and I 
> hope you'll take a look at it:
>
>     https://mail.openjdk.org/pipermail/core-libs-dev/2023-April/104118.html
>
>
There's a lot more thinking required before considering adding new APIs 
like this. It requires thinking about new developers writing toy 
programs that could easily be confused by two methods that appear to do 
the same thing. Also needs taking a broader view on how it works with 
other locale sensitive APIs.

In your list, auditing the usages in the JDK to identify usages where it 
should be using Locale.ROOT instead of Locale.getDefault would be helpful.

-Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20230415/2d5df34b/attachment-0001.htm>


More information about the core-libs-dev mailing list