Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-610

PrettyPrintXMLWriter internally uses java.io.PrintWriter without checking for any errors.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: maven-shared-utils-3.2.0
    • Component/s: None
    • Labels:
      None

      Description

      org.apache.maven.shared.utils.xml.PrettyPrintXMLWriter internally uses a java.io.PrintWriter. That class is catching all IOException s internally and does not propagate any exception itseld. Instead the checkError method is provided to check for any error during performing IO. The PrettyPrintXMLWriter must not silently ingore any exception during writing and either needs to provide a checkError method itself (to follow a bad idea) or should be updated to check for any IO errors and throw an exception.

        Attachments

          Activity

            People

            • Assignee:
              schulte77 Christian Schulte
              Reporter:
              schulte77 Christian Schulte
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: