]> source.dussan.org Git - poi.git/commitdiff
Fix jdk-differences for encryption patch
authorkiwiwings <kiwiwings@unknown>
Tue, 24 Dec 2013 23:55:17 +0000 (23:55 +0000)
committerkiwiwings <kiwiwings@unknown>
Tue, 24 Dec 2013 23:55:17 +0000 (23:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553340 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/java/org/apache/poi/poifs/crypt/agile/AgileEncryptor.java

index 558d07ec880e2c69c429411c771c55ae42418328..455c8cd4d7770643b1378edc243d33a9c093fc02 100644 (file)
@@ -319,7 +319,7 @@ public class AgileEncryptor extends Encryptor {
                 int ciLen = _cipher.doFinal(_chunk, 0, posInChunk, _chunk);\r
                 out.write(_chunk, 0, ciLen);\r
             } catch (GeneralSecurityException e) {\r
-                throw new IOException(e);\r
+                throw (IOException)new IOException().initCause(e);\r
             }\r
         }\r
         \r