You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2018/06/26 20:34:00 UTC

[jira] [Created] (PDFBOX-4254) PDDocument.close() might ignore throwing an Exception

Maruan Sahyoun created PDFBOX-4254:
--------------------------------------

             Summary: PDDocument.close() might ignore throwing an Exception
                 Key: PDFBOX-4254
                 URL: https://issues.apache.org/jira/browse/PDFBOX-4254
             Project: PDFBox
          Issue Type: Bug
          Components: PDModel
    Affects Versions: 2.0.10, 2.0.11, 3.0.0 PDFBox
            Reporter: Maruan Sahyoun


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?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org