On Sun, 6 Sep 2026 14:58:05 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:
>
> Fix location mistake
@tats-u
Your change (at version 5bda2d5733ae68ca8c8fe1146942b7dcbd6c1147) is now ready
to be sponsored by a Committer.
@tats-u
Your change (at version 5bda2d5733ae68ca8c8fe1146942b7dcbd6c1147) is now ready
to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26461#issuecomment-5788494607
PR Comment: https://git.openjdk.org/jdk/pull/26461#issuecomment-5788511829