aboutsummaryrefslogtreecommitdiffstats
path: root/src/ooxml/java/org/apache/poi/openxml4j
diff options
context:
space:
mode:
authorJaven O'Neal <onealj@apache.org>2016-09-14 17:21:31 +0000
committerJaven O'Neal <onealj@apache.org>2016-09-14 17:21:31 +0000
commitee27829d797d7dc7684eb019311838db412e0656 (patch)
treebdd8b4c58a460eb17b089a82ec96a120d452fa5b /src/ooxml/java/org/apache/poi/openxml4j
parentec55aceeca4665768a757d255168676160685079 (diff)
downloadpoi-ee27829d797d7dc7684eb019311838db412e0656.tar.gz
poi-ee27829d797d7dc7684eb019311838db412e0656.zip
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
Diffstat (limited to 'src/ooxml/java/org/apache/poi/openxml4j')
-rw-r--r--src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java b/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
index 3872e7381c..ca54fa9f45 100644
--- a/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
+++ b/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
@@ -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);
}