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:
Javen O'Neal 2016-09-14 17:21:31 +00:00
parent 41b0462f50
commit 753ca9b811
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}