<i18n dev> RFR: 8364007: Add no-argument codePointCount method to CharSequence and String [v3]
Naoto Sato
naoto at openjdk.org
Mon Jul 28 16:11:56 UTC 2025
On Sun, 27 Jul 2025 10:23:03 GMT, Tatsunori Uchino <duke at openjdk.org> wrote:
> The addition to CharSequence will require static analysis to check for conflicts with implementation. It will also likely impact the CharBuffer spec.
Looking at the original JSR 204 issue: https://bugs.openjdk.org/browse/JDK-4985217, it is interesting that the problem description included `CharSequence` but not in the proposed API. Tried to find the reason behind, but could not find any relevant information so far.
As to the general comment, I am not so sure adding the no-arg overrides, as they would simply be convenience methods to `codePointCount(0, length())` which to me adding not a significant benefit. My $0.02
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26461#issuecomment-3127954858
More information about the i18n-dev
mailing list