Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5534

Remove finalize from ScratchFileBuffer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.27, 3.0.0 PDFBox
    • 2.0.28, 3.0.0 PDFBox
    • Parsing
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              lehmi Andreas Lehmkühler
              lehmi Andreas Lehmkühler
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: