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

Closing DOMXMLWriter will close System.out

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 9.4-rc-1
    • 2.3 M2
    • Old Core
    • None
    • Unknown
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: