<div dir="ltr">>
<span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px">I'm fine with users having to write toLowerCase(Locale.ROOT) or toUpperCase(Locale.Root) because this is already what we teach.</span><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px"><br></span></div><div>This is the current situation, but I don't think it is good.<span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:16px"><br></span></div><div><br></div><div>This idiom forces users to import Locale even in locale-insensitive scenarios. </div><div>I think this brings a lot of noise, so we also need to eliminate it<br></div><div><br></div><div>Glavo</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 12, 2023 at 4:21 AM Remi Forax <<a href="mailto:forax@univ-mlv.fr">forax@univ-mlv.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><div><br></div><div><br></div><hr id="m_2491156545230875550zwchr"><div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px;color:rgb(0,0,0);font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><b>From: </b>"Glavo" <<a href="mailto:zjx001202@gmail.com" target="_blank">zjx001202@gmail.com</a>><br><b>To: </b>"core-libs-dev" <<a href="mailto:core-libs-dev@openjdk.org" target="_blank">core-libs-dev@openjdk.org</a>><br><b>Sent: </b>Tuesday, April 11, 2023 10:02:01 PM<br><b>Subject: </b>Draft: Deprecate toLowerCase()/toUpperCase() and provide locale insensitive alternative<br></blockquote></div><div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px;color:rgb(0,0,0);font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><div dir="ltr"><div>Hi everyone,<br></div><br><div>A few months ago, I discussed in this mailing list[1] whether
toLowerCase()/toUpperCase() should be deprecated.</div><div>At that time, I received some approval and no one opposed the idea. Therefore, I thought it might be time </div><div>to continue advancing this work, so I created a PR[2] for this.<br></div><br><div>This PR is still a draft, welcome to discuss it there.</div><br><div>I don't have much experience in contributing to OpenJDK yet, so I also hope to get the help of experienced </div><div>contributors (such as creating CSR). Thanks!</div></div></blockquote><div><br></div><div>I think deprecating toLowerCase()/toUpperCase() is a great idea but at the same time, i'm not sure that the methods lowercase() and uppercase() are a good addition.</div><div>Their names are too close to toLowerCase/toUpperCase thus too easy to misuse ones for the others.<br></div><div><br></div><div>I'm fine with users having to write toLowerCase(Locale.ROOT) or toUpperCase(Locale.Root) because this is already what we teach.<br></div><div><br></div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px;color:rgb(0,0,0);font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><div dir="ltr"><div><br></div><br><div>Glavo</div></div></blockquote><div><br></div><div>regards,<br></div><div>Rémi<br></div><div><br></div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px;color:rgb(0,0,0);font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><div dir="ltr"><br><div>[1] <a href="https://mail.openjdk.org/pipermail/core-libs-dev/2023-January/099375.html" target="_blank">https://mail.openjdk.org/pipermail/core-libs-dev/2023-January/099375.html</a><br></div>[2] <a href="https://github.com/openjdk/jdk/pull/13434" target="_blank">https://github.com/openjdk/jdk/pull/13434</a><br></div><br></blockquote></div></div></div></blockquote></div>