that's a mistake. It should retain the first non null exception if there is any 
so instead of

return null;

it should be

return initialException;

in  IOUtils.closeAndLogException().

I'll open a ticket later today.
Maruan

 
> 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?
> 
> https://issues.apache.org/jira/browse/PDFBOX-4158
> 
> Tilman
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
-- 
Maruan Sahyoun

FileAffairs GmbH
Josef-Schappe-Straße 21
40882 Ratingen

Tel: +49 (2102) 89497 88
Fax: +49 (2102) 89497 91
[email protected]
www.fileaffairs.de

Geschäftsführer: Maruan Sahyoun
Handelsregister: AG Düsseldorf, HRB 53837
UST.-ID: DE248275827

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to