poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52204] New: InputStream not closed
Date Thu, 17 Nov 2011 12:50:15 GMT
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: dev@poi.apache.org
        ReportedBy: samuel.imbert@gmail.com
    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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message