https://bz.apache.org/bugzilla/show_bug.cgi?id=57666

            Bug ID: 57666
           Summary: SXSSFWorkbook.dispose() does not delete temp xml files
                    of sheets copied from an existing XSSFWorkbook at
                    construction time
           Product: POI
           Version: 3.11-FINAL
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SXSSF
          Assignee: [email protected]
          Reporter: [email protected]

Any sheets copied from an existing workbook when constructing a SXSSFWorkbook
are not deleted by the dispose() method.

For example, assume "existingWorkbook" contains n sheets:

    SXSSFWorkbook wb = SXSSFWorkbook(existingWorkbook);
    wb.createSheet("New");
    wb.dispose();

After calling the constructor, a temporary xml file is created for each new
sheet copied from an existing sheet.
After calling wb.createSheet a temporary xml file is created for the fresh
sheet.
After calling dispose(), only the temporary xml file created by createSheet()
will be deleted.

I didn't provide a unit test since it's hard to to check for the internally
created temp files, and also because File.delete() is not guaranteed to be
actually deleted after returning with "true" because the file system operation
might be async.

-- 
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