-
Type:
Bug
-
Status: Closed
-
Priority:
P2
-
Resolution: Duplicate
-
Affects Version/s: 11
-
Fix Version/s: None
-
Component/s: core-libs
-
Labels:
-
Environment:
-XX:-CompactStrings
JCK test fails on platforms without strings compacting (Zero, ARM32, etc) and on all platforms with -XX:-CompactStrings option:
JCK-runtime-11/tests/api/java_nio/file/Files/WriteAndReadStrFromPathTests.java
Minimal manual test (attached):
$ ./jdk-11/bin/java -XX:-CompactStrings WriteAndReadTests
FAIL - strings are not equal: "some text" != "some text"
length: 9 18
JCK-runtime-11/tests/api/java_nio/file/Files/WriteAndReadStrFromPathTests.java
Minimal manual test (attached):
$ ./jdk-11/bin/java -XX:-CompactStrings WriteAndReadTests
FAIL - strings are not equal: "some text" != "some text"
length: 9 18
- duplicates
-
JDK-8211839 java.nio.file.Files.writeString writes garbled UTF-16 instead of UTF-8
-
- Resolved
-
- relates to
-
JDK-8209576 java.nio.file.Files.writeString writes garbled UTF-16 instead of UTF-8
-
- Resolved
-
-
JDK-8202055 Add methods to Files for reading/writing a string from/to a file
-
- Closed
-