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

             Bug #: 52204
           Summary: InputStream not closed
           Product: POI
           Version: 3.7
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


When we create a XSSFWorkbook with the following code : new
XSSFWorkbook(fileName)
the InputStream seems not closed.

Indeed next we can't modify the file (error : file use by System).

If I do : 

File f = new File(fileName);
InputStream in = new FileInputStream(f);                    
XSSFWorkbook wb = new XSSFWorkbook(in);
in.close();

The error doesn't appear anymore.

Is it a bug or my bad use of XXSF API?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- 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