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

PDDocument.close() might ignore throwing an Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.10, 2.0.11, 3.0.0 PDFBox
    • 2.0.12, 3.0.0 PDFBox
    • PDModel
    • None

    Description

      As discussed on the mailing list:

      I had a look at IOUtils.closeAndLogException() and PDDocument.close() and if initialException is not null, then null is returned if a new exception is thrown, or if everything goes well. This means that at the end of PDDocument.close(), no exception would be thrown, right? Was this intended?

      Attachments

        Activity

          People

            msahyoun Maruan Sahyoun
            msahyoun Maruan Sahyoun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: