On Mon, 19 Sep 2022 19:01:57 GMT, Naoto Sato <na...@openjdk.org> wrote:

> Fixing JCK failures caused by the new grapheme implementation. The length of 
> a CharSequence should return the `endIndex`, not `endIndex - beginIndex`.

src/java.base/share/classes/sun/util/locale/provider/BreakIteratorProviderImpl.java
 line 329:

> 327:         @Override
> 328:         public int length() {
> 329:             return src.getEndIndex();

Could the issue be somewhere else?  I mean it feels correct for length = 
endIndex - beginIndex.

-------------

PR: https://git.openjdk.org/jdk/pull/10349

Reply via email to