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

--- Comment #5 from Alex Geller <[email protected]> ---
I hope it is OK to post this much prose for a bug but I think I am done now.
The main problem with temp file removal in finalize() is that you can't predict
when it is done. I thought that that wouldn't be an issue since we don't really
care when they are removed as long as they are removed timely (e.g. the next
few minutes). However it is possible that this is not the case. If you comment
the line that runs gc explicitly from the attached test program then the
workbook does not get garbage collected on my JVM (garbage collection is
implementation dependent so it may not reproduce on other JVMs). However, for
long running programs that allocate memory regularly one can probably assume
that the scheme works.
I suggest to leave the code as is but to introduce an additional function
SXSSFWorkbook.dispose() that allows to free the resources explicitly.

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