arturobernalg opened a new pull request, #230:
URL: https://github.com/apache/maven-script-interpreter/pull/230

   consumeLine wrote through a PrintStream, which never reports a failed write 
through an exception, only an internal error flag nothing here ever checked. A 
failed write to the log file was silently lost.
   
   Write through the real OutputStream instead, which throws IOException on a 
failed write, and surface it as an UncheckedIOException from consumeLine and 
close. Add getOutputStream to expose that stream directly, and deprecate 
getPrintStream in favor of it, keeping it working by wrapping the same stream 
for existing callers.
   
   Fixes #214
   
   Claude-Session: https://claude.ai/code/session_0153qyh22xBMN1vPfWGz3jSH
   
   ---
   
   To make clear that you license your contribution under
   the [Apache License Version 2.0, January 
2004](https://www.apache.org/licenses/LICENSE-2.0)
   check one of the following:
   
   - [x] I hereby declare this contribution to be licensed under the [Apache 
License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0)
   - [x] I hereby declare that I have filed an [Apache Individual Contributor 
License Agreement](https://www.apache.org/licenses/icla.pdf).


-- 
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]

Reply via email to