<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Glavo" <zjx001202@gmail.com><br><b>To: </b>"core-libs-dev" <core-libs-dev@openjdk.org><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 data-marker="__QUOTED_TEXT__"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;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 data-mce-bogus="1"></div><div><br data-mce-bogus="1"></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 data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;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 data-mce-bogus="1"></div><div>RĂ©mi<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;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 data-mce-bogus="1"></div>[2] <a href="https://github.com/openjdk/jdk/pull/13434" target="_blank">https://github.com/openjdk/jdk/pull/13434</a><br data-mce-bogus="1"></div><br></blockquote></div></div></body></html>