mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8273308: PatternMatchTest.java fails on CI
Reviewed-by: dfuchs, smarks
This commit is contained in:
parent
25c8584879
commit
4b9303b77b
1 changed files with 1 additions and 1 deletions
|
@ -3445,7 +3445,7 @@ loop: for(int x=0, offset=0; x<nCodePoints; x++, offset+=len) {
|
|||
int length = seq.length();
|
||||
int x = index;
|
||||
if (lengthInCodePoints >= 0) {
|
||||
assert (index >= 0 && index < length);
|
||||
assert ((length == 0 && index == 0) || index >= 0 && index < length);
|
||||
for (int i = 0; x < length && i < lengthInCodePoints; i++) {
|
||||
if (Character.isHighSurrogate(seq.charAt(x++))) {
|
||||
if (x < length && Character.isLowSurrogate(seq.charAt(x))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue