JDK-8077518 : XMLParserTest unit test failure.
  • Type: Bug
  • Component: deploy
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-04-10
  • Updated: 2016-01-20
  • Resolved: 2015-04-11
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 8 JDK 9
8u60Fixed 9 b65Fixed
Description
The new XMLParser will no longer trim CDATA content, so that a node of:
<foo>  </foo> actaully has a sub element named "  ".
This has no effect on actuall running, but several test cases in XMLParserTest fail when either just space exists between start and end element and then XMLNode is compared such as:
<jnlp>/n</jnlp> is compared to see if it is equal to <jnlp/>

simple fix is to remove spaces and newlines explicitly put between tags in test
Comments
crucible review: https://java.se.oracle.com/code/cru/CR-JDK9CLIENT-933
10-04-2015