JDK-8262041 : javax/xml/jaxp/unittest/common/prettyprint/PrettyPrintTest.java fails after JDK-8260858
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 17
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: x86_64
  • Submitted: 2021-02-19
  • Updated: 2021-07-31
  • Resolved: 2021-02-20
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 17
17 b11Fixed
Related Reports
Relates :  
Sub Tasks
JDK-8262042 :  
Description
The following test is failing in the JDK17 CI:

javax/xml/jaxp/unittest/common/prettyprint/PrettyPrintTest.java

Here's a snippet from the log file:

----------System.out:(709/45889)----------
[TestNG] Running:
  javax/xml/jaxp/unittest/common/prettyprint/PrettyPrintTest.java

test common.prettyprint.PrettyPrintTest.testDisableOutputEscaping(): success
test common.prettyprint.PrettyPrintTest.testIsStandalone_DOMLS(true, false, true, true, "<?xml version="1.0" encoding="UTF-8"?>
<sometag/>
"): success
test common.prettyprint.PrettyPrintTest.testIsStandalone_DOMLS(true, false, true, false, "<?xml version="1.0" encoding="UTF-8"?><sometag/>
"): success
test common.prettyprint.PrettyPrintTest.testIsStandalone_DOMLS(true, true, false, true, "<?xml version="1.0" encoding="UTF-8"?>
<sometag/>
"): success
test common.prettyprint.PrettyPrintTest.testIsStandalone_DOMLS(true, true, false, false, "<?xml version="1.0" encoding="UTF-8"?><sometag/>
"): success
test common.prettyprint.PrettyPrintTest.testIsStandalone_DOMLS(true, false, false, false, "<?xml version="1.0" encoding="UTF-8"?><sometag/>
"): success
test common.prettyprint.PrettyPrintTest.testIsStandalone_DOMLS(false, false, true, true, "<?xml version="1.0" encoding="UTF-8"?>
<sometag/>"): success
test common.prettyprint.PrettyPrintTest.testIsStandalone_DOMLS(false, true, false, true, "<?xml version="1.0" encoding="UTF-8"?>
<sometag/>"): success
test common.prettyprint.PrettyPrintTest.testIsStandalone_Template("<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!--Identity template, copies all content into the output -->
    <xsl:template match="@*|node()">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
    </xsl:template>

</xsl:stylesheet>", true, false, true, true, "<?xml version="1.0" encoding="UTF-8"?>
<sometag/>
"): failure
java.lang.AssertionError: expected [<?xml version="1.0" encoding="UTF-8"?>
<sometag/>
] but found [<?xml version="1.0" encoding="UTF-8"?>
<sometag/>
]
	at org.testng.Assert.fail(Assert.java:94)
	at org.testng.Assert.failNotEquals(Assert.java:496)
	at org.testng.Assert.assertEquals(Assert.java:125)
	at org.testng.Assert.assertEquals(Assert.java:178)
	at org.testng.Assert.assertEquals(Assert.java:188)
	at common.prettyprint.PrettyPrintTest.testIsStandalone_Template(PrettyPrintTest.java:206)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:85)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:639)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:821)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1131)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:124)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:108)
	at org.testng.TestRunner.privateRun(TestRunner.java:773)
	at org.testng.TestRunner.run(TestRunner.java:623)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:357)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:352)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:310)
	at org.testng.SuiteRunner.run(SuiteRunner.java:259)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1185)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1110)
	at org.testng.TestNG.run(TestNG.java:1018)
	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:94)
	at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:54)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:831)

I'm starting this bug out as a P2 even though this is Tier2
test failure because the failure has appeared in every Tier2
CI job set since the following fix was integrated:

    JDK-8260858 Implementation specific property xsltcIsStandalone for XSLTC Serializer
Comments
Changeset: 47559584 Author: Joe Wang <joehw@openjdk.org> Date: 2021-02-20 02:37:53 +0000 URL: https://git.openjdk.java.net/jdk/commit/47559584
20-02-2021

My mach5 tests (windows/linux) passed at the time. Will set up on a Windows box to check it out.
19-02-2021

This test failure first happened in jdk-17+11-764-tier2 which includes the fix for: JDK-8260858 Implementation specific property xsltcIsStandalone for XSLTC Serializer In jdk-17+11-764-tier2, the test only failed on Win*; the test passed on linux-aarch64, linux-x64, linux-x64-debug, and macos-x64.
19-02-2021

[~joehw] - Please take a look at this test failure.
19-02-2021