The GitHub Actions job "Java CI with Ant" on poi.git/leak-pptxmldump-stream has 
failed.
Run started by GitHub user pjfanning (triggered by pjfanning).

Head commit for run:
3a8f0a5090b102f7f696ff41bd16608e1b399d43 / PJ Fanning 
<[email protected]>
Use try-with-resources for the PPTXMLDump output file

PPTXMLDump.main opened the .xml output stream and closed it only after
dump() returned, so an IOException part way through the dump leaked the
stream. Switch to try-with-resources.

While here: the console branch wrapped System.out in a BufferedWriter and
never flushed it, and dump() does not flush either, so running the tool
without -f printed nothing. Add the missing flush. System.out is
deliberately flushed rather than closed.

The now-unused java.io.OutputStream import is dropped.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

Report URL: https://github.com/apache/poi/actions/runs/34117384305

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to