slachiewicz commented on issue #304: URL: https://github.com/apache/maven-shared-utils/issues/304#issuecomment-5631308000
Closing as already fixed. Since [402bc64](https://github.com/apache/maven-shared-utils/commit/402bc64) (MSHARED-610, released in 3.2.0) every write in [PrettyPrintXMLWriter.java](https://github.com/apache/maven-shared-utils/blob/master/src/main/java/org/apache/maven/shared/utils/xml/PrettyPrintXMLWriter.java) is followed by `checkError()` and an `IOException` when the underlying `PrintWriter` has failed, and the `XMLWriter` methods declare it. What is lost is the original exception's message, since `PrintWriter` only keeps a flag; that is inherent to the public `PrintWriter` constructors and not worth changing in a deprecated package. Reopen with a case where an error goes unreported. *This comment was created with AI assistance.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
