Browse Source

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
pull/38/head
Javen O'Neal 7 years ago
parent
commit
753ca9b811
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java

+ 2
- 2
src/ooxml/java/org/apache/poi/openxml4j/opc/ZipPackage.java 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);
}

Loading…
Cancel
Save