On Sun, 17 May 2026 15:00:15 GMT, Tatsunori Uchino <[email protected]> wrote:
>> Adds `codePointCount()` overloads to `String`, `Character`,
>> `(Abstract)StringBuilder`, and `StringBuffer` to make it possible to
>> conveniently retrieve the length of a string as code points without extra
>> boundary checks.
>>
>>
>> if (superTremendouslyLongExpressionYieldingAString().codePointCount() >
>> limit) {
>> throw new Exception("exceeding length");
>> }
>>
>>
>> Is a CSR required to this change?
>>
>> - [x] I confirm that I make this contribution in accordance with the
>> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai).
>
> Tatsunori Uchino has updated the pull request incrementally with one
> additional commit since the last revision:
>
> Tweak JavaDoc style
Sorry, we are busy with JEP 401 right now. As for the CSR/patch, Oracle plans
to run a corpus scan over maven central to check the compatibility impact of
the new `codePointCount()` default method. Please prompt again after JEP 401
integration.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26461#issuecomment-4724627875