You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by on...@apache.org on 2016/09/14 17:21:31 UTC
svn commit: r1760732 -
/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
Author: onealj
Date: Wed Sep 14 17:21:31 2016
New Revision: 1760732
URL: http://svn.apache.org/viewvc?rev=1760732&view=rev
Log:
bug 60128: make code Java 6 compatible. Throwable#addSuppressed not available until Java 7
Modified:
poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
Modified: poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java?rev=1760732&r1=1760731&r2=1760732&view=diff
==============================================================================
--- poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java (original)
+++ poi/trunk/src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java Wed Sep 14 17:21:31 2016
@@ -99,8 +99,8 @@ public final class ZipPackage extends OP
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);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org