JDK-8211773 : JDK 11 GA fails JCK11 test: UTF-8/UTF-16 String data conversion problem
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 11
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2018-10-05
  • Updated: 2018-10-10
  • Resolved: 2018-10-10
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
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

Comments
~Joe, it seems like to resolve this issue JDK-8209576 needs to be backported to 11u. With this fix applied, the JCK test case passes. Are you willing to do it yourself or would you like help from the community?
06-10-2018