Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14264

Closing DOMXMLWriter will close System.out

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3 M2
    • Fix Version/s: 9.4-rc-1
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Right now the constructor of DOMXMLWriter uses the default constructor of DOM4J's XMLWriter which uses System.out. Thus when we call close() on an instance of DOMXMLWriter we're closing System.out which isn't good.

      This is what makes JUnit5's surefire provider fail in XCOMMONS-1189 (see https://github.com/junit-team/junit5/issues/801 for details).

      Introduced in XWIKI-4627.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vmassol Vincent Massol
                Reporter:
                vmassol Vincent Massol
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: