bug 60128: make code Java 6 compatible. Throwable#addSuppressed not available until Java 7
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1760732 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
41b0462f50
commit
753ca9b811
@ -99,8 +99,8 @@ public final class ZipPackage extends OPCPackage {
|
||||
try {
|
||||
zis.close();
|
||||
} catch (final IOException e2) {
|
||||
e2.addSuppressed(e);
|
||||
throw new IOException("Failed to close zip input stream while cleaning up", e2);
|
||||
e.printStackTrace();
|
||||
throw new IOException("Failed to close zip input stream while cleaning up. " + e.getMessage(), e2);
|
||||
}
|
||||
throw new IOException("Failed to read zip entry source", e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user