Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8262041

javax/xml/jaxp/unittest/common/prettyprint/PrettyPrintTest.java fails after JDK-8260858

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 17
    • 17
    • xml
    • b11
    • x86_64
    • windows
    • Verified

      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

            joehw Joe Wang
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: