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.