mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8316879: RegionMatches1Tests fails if CompactStrings are disabled after JDK-8302163
Reviewed-by: simonis, rgiulietti, rriggs
This commit is contained in:
parent
ca5eee2fe3
commit
cfcbfc6cae
2 changed files with 28 additions and 8 deletions
|
@ -2156,6 +2156,10 @@ public final class String
|
|||
(ooffset > (long)other.length() - len)) {
|
||||
return false;
|
||||
}
|
||||
// Any strings match if len <= 0
|
||||
if (len <= 0) {
|
||||
return true;
|
||||
}
|
||||
byte[] tv = value;
|
||||
byte[] ov = other.value;
|
||||
byte coder = coder();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue