-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
11
-
-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