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

XMLParserTest unit test failure.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: deploy
    • Resolved In Build:
      b65

      Backports

        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

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  herrick Andy Herrick
                  Reporter:
                  herrick Andy Herrick
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: