You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2014/06/04 17:46:20 UTC

[Bug 56537] Using org.apache.poi.ss.usermodel.WorkbookFactory.create(File) leaks file handles

https://issues.apache.org/bugzilla/show_bug.cgi?id=56537

--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
WorkbookFactory.create(File) is only about 5 lines of code. If your use case
means you need to close the resources explicitly, your best bet is to pull out
the key 4 lines, and use them directly, along with adding hooks into your
application's own resource tidy-up system.

Given the current simple method signature, it's not possible to return both the
Workbook and the Closeable resource

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org