]> source.dussan.org Git - poi.git/commitdiff
Fix jdk-differences for encryption patch
authorAndreas Beeker <kiwiwings@apache.org>
Tue, 24 Dec 2013 23:49:10 +0000 (23:49 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Tue, 24 Dec 2013 23:49:10 +0000 (23:49 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553339 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/poifs/crypt/EncryptionInfo.java

index 25f9b01e15644b86f81ca4cd39a13fe8aaf905ac..6e5c913a3bdbe89fe20fdc2f70f628bdfe6918dc 100644 (file)
@@ -66,7 +66,7 @@ public class EncryptionInfo {
         try {
             eib = getBuilder(encryptionMode);
         } catch (Exception e) {
-            throw new IOException(e);
+            throw (IOException)new IOException().initCause(e);
         }
 
         eib.initialize(this, dis);