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

            Bug ID: 56537
           Summary: Using
                    org.apache.poi.ss.usermodel.WorkbookFactory.create(Fil
                    e) leaks file handles
           Product: POI
           Version: 3.10
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POI Overall
          Assignee: [email protected]
          Reporter: [email protected]

According to the API docs for XSSFWorkbook (
http://poi.apache.org/apidocs/org/apache/poi/xssf/usermodel/XSSFWorkbook.html#XSSFWorkbook%28java.lang.String%29
), "OPCPackage.close()" needs to be called when interaction with the Workbook
is complete.

It's not possible to do that when using
org.apache.poi.ss.usermodel.WorkbookFactory.create(File), so it presumably
leaks in the same way that the deprecated XSSFWorkbook(String) constructor
does.

It looks like same issue exists in the HSSFWorkbook() implementation for that
method too - leaking the file handle in NPOIFSFileSystem.

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

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

Reply via email to