mirror of
https://github.com/apache/poi.git
synced 2025-03-06 00:49:36 +00:00
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
ec55aceeca
commit
ee27829d79
@ -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…
x
Reference in New Issue
Block a user