Bug 60259

Summary: [PATCH] dispose temp file in test code
Product: POI Reporter: PJ Fanning <fanningpj>
Component: SXSSFAssignee: POI Developers List <dev>
Severity: normal    
Priority: P2    
Version: 3.15-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X 10.1   
Attachments: [PATCH] dispose temp file in test code

Description PJ Fanning 2016-10-15 09:43:03 UTC
Created attachment 34375 [details]
[PATCH] dispose temp file in test code

A small issue in TestSXSSFWorkbookWithCustomZipEntrySource. As the inner classes in the test could be used as the basis of writing a custom version of SXSSFWorkbook, it would be nice to ensure that those classes close all the temp resources they create.
Comment 1 Dominik Stadler 2016-10-15 17:49:09 UTC
Thanks for the patch, we already fixed this via r1765019, albeit in a different way, maybe you can take a look if our approach is valid as well.
Comment 2 Dominik Stadler 2016-10-15 17:50:33 UTC
Oh wait, I will take another look, maybe this is something else.
Comment 3 Dominik Stadler 2016-10-15 19:08:36 UTC
Thanks, I have applied this via r1765100, although the file was cleaned up by the TempFile implementation automatically as well and thus no file was left over, but it is a bit cleaner this way.