https://bz.apache.org/bugzilla/show_bug.cgi?id=66584

--- Comment #2 from PJ Fanning <fannin...@yahoo.com> ---
This change has been largely reverted as part of
https://bz.apache.org/bugzilla/show_bug.cgi?id=67579

The original change is in POI 5.2.4 but it is causing a regression will be
undone in future releases.

It is the responsibility of users who have InputStreams that they feed into POI
APIs to close those streams themselves.

Something like:

try(
    InputStream stream = ...;
    XSSFWorkbook workbook = new XSSFWorkbook(stream)
) {
    // use workbook
}

The try-with-resources syntax will ensure that stream and workbook are closed
after the try block completes (regardless of whether there is an exception or
not).

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org
For additional commands, e-mail: dev-h...@poi.apache.org

Reply via email to