RFR: 8316879: RegionMatches1Tests fails if CompactStrings are disabled after JDK-8302163 [v3]
Aleksei Voitylov
avoitylov at openjdk.org
Tue Sep 26 14:06:56 UTC 2023
> test java.lang.String.RegionMatches1Tests fails on all platforms with -XX:-CompactStrings option and on ARM32 where Compact Strings is disabled by default. The fix is to return true immediately if len is negative, since for negative length this condition will never be satisfied.
>
> Testing: JCK, JTREG passed with the fix with -XX:-CompactStrings on x86_64 and on ARM32.
Aleksei Voitylov has updated the pull request incrementally with one additional commit since the last revision:
Update src/java.base/share/classes/java/lang/String.java
Co-authored-by: Raffaello Giulietti <raffaello.giulietti at oracle.com>
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/15906/files
- new: https://git.openjdk.org/jdk/pull/15906/files/003c142e..7a505e0d
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=15906&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=15906&range=01-02
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/15906.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/15906/head:pull/15906
PR: https://git.openjdk.org/jdk/pull/15906
More information about the core-libs-dev
mailing list