From: Andreas Beeker Date: Tue, 24 Dec 2013 23:55:17 +0000 (+0000) Subject: Fix jdk-differences for encryption patch X-Git-Tag: REL_3_10_FINAL~26 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b282bd7f9c507befd19ac98444f8711765e7ae83;p=poi.git Fix jdk-differences for encryption patch git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553340 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/java/org/apache/poi/poifs/crypt/agile/AgileEncryptor.java b/src/ooxml/java/org/apache/poi/poifs/crypt/agile/AgileEncryptor.java index 558d07ec88..455c8cd4d7 100644 --- a/src/ooxml/java/org/apache/poi/poifs/crypt/agile/AgileEncryptor.java +++ b/src/ooxml/java/org/apache/poi/poifs/crypt/agile/AgileEncryptor.java @@ -319,7 +319,7 @@ public class AgileEncryptor extends Encryptor { int ciLen = _cipher.doFinal(_chunk, 0, posInChunk, _chunk); out.write(_chunk, 0, ciLen); } catch (GeneralSecurityException e) { - throw new IOException(e); + throw (IOException)new IOException().initCause(e); } }