[
https://issues.apache.org/jira/browse/PDFBOX-5534?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Lehmkühler updated PDFBOX-5534:
---------------------------------------
Fix Version/s: 2.0.28
3.0.0 PDFBox
> Remove finalize from ScratchFileBuffer
> --------------------------------------
>
> Key: PDFBOX-5534
> URL: https://issues.apache.org/jira/browse/PDFBOX-5534
> Project: PDFBox
> Issue Type: Improvement
> Components: Parsing
> Affects Versions: 2.0.27, 3.0.0 PDFBox
> Reporter: Andreas Lehmkühler
> Assignee: Andreas Lehmkühler
> Priority: Major
> Fix For: 2.0.28, 3.0.0 PDFBox
>
>
> The usage of finalize is discouraged so that it is a good idea to remove it.
> I've found a way to do so for ScratchFileBuffer. All created buffers are
> collected within ScratchFile. Once a buffer is closed it is removed from the
> collection. If ScratchFile is closed when closing the pdf all remaining
> buffers are closed as well.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]