[ https://issues.apache.org/jira/browse/PDFBOX-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tilman Hausherr resolved PDFBOX-2039. ------------------------------------- Resolution: Fixed Assignee: Tilman Hausherr Done in rev 1589459 and 1589467 in the trunk and rev 1589465 in the 1.8 branch. Thanks for pointing me to this! > Class PDDocument should implement java.io.Closeable > --------------------------------------------------- > > Key: PDFBOX-2039 > URL: https://issues.apache.org/jira/browse/PDFBOX-2039 > Project: PDFBox > Issue Type: Improvement > Affects Versions: 1.8.4, 1.8.5, 2.0.0 > Reporter: Andrei Solntsev > Assignee: Tilman Hausherr > Priority: Minor > Fix For: 1.8.5, 2.0.0 > > Original Estimate: 1h > Remaining Estimate: 1h > > It would make it possible to use Java 7 try-with-resources feature: > try (PDDocument doc = PDDocument.load(outputFile)) { > // bla-bla > // no need to call doc.close(); explicitly > } > P.S. Actually all org.apache.pdfbox.* classes with method close() could > implement java.io.Closeable -- This message was sent by Atlassian JIRA (v6.2#6252)