poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 56537] Using org.apache.poi.ss.usermodel.WorkbookFactory.create(File) leaks file handles
Date Wed, 04 Jun 2014 15:46:20 GMT

--- Comment #1 from Nick Burch <apache@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

View raw message