JDK-8076290 : JCK test api/xsl/conf/string/string17 starts failing after JDK-8074297
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-03-31
  • Updated: 2015-09-29
  • Resolved: 2015-04-01
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 JDK 8 JDK 9 Other
6u101Fixed 7u85Fixed 8u51Fixed 9 b59Fixed openjdk7uFixed
Related Reports
Relates :  
api/xsl/conf/string/string17_string17 TestCase [testTransformation] 
This JCK test starts failing in corelibs jdk9 nightly testing on all platforms after JDK-8074297

java version "1.9.0-ea" 
Java(TM) SE Runtime Environment (build 1.9.0-ea-langtools-nightly-h2444-20150330-b57) 

JCK suite info: 
JCK version: 9/b09

testTransformation: Failed. Transformation result is not equal to expected result.
STATUS:Failed.test cases: 1; all failed; first test case failure: testTransformation
mismatch-value;TEXT()len=2;TEXT()len=3;lengths do not match
XHTFileCheckService results were not equal.
Expected result:
<?xml version="1.0" encoding="UTF-8"?>

Actual result:
<?xml version="1.0" encoding="UTF-8"?><out>123</out>
result: Failed. test cases: 1; all failed; first test case failure: testTransformation

The fix differs from suggested earlier and it's under the review now: http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-March/032644.html

Incorrect variable was used during the fix for JDK-8074297: int offset = value.offsetByCodePoints(istart, ilength); Should be replaced with int offset = value.offsetByCodePoints(istart, isum); Will update the 8074297 test and fix the source code. Thanks for catching this.