Author: kiwiwings
Date: Tue Dec 24 23:55:17 2013
New Revision: 1553340

URL: http://svn.apache.org/r1553340
Log:
Fix jdk-differences for encryption patch

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

Modified: 
poi/trunk/src/ooxml/java/org/apache/poi/poifs/crypt/agile/AgileEncryptor.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/src/ooxml/java/org/apache/poi/poifs/crypt/agile/AgileEncryptor.java?rev=1553340&r1=1553339&r2=1553340&view=diff
==============================================================================
--- 
poi/trunk/src/ooxml/java/org/apache/poi/poifs/crypt/agile/AgileEncryptor.java 
(original)
+++ 
poi/trunk/src/ooxml/java/org/apache/poi/poifs/crypt/agile/AgileEncryptor.java 
Tue Dec 24 23:55:17 2013
@@ -319,7 +319,7 @@ public class AgileEncryptor extends Encr
                 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);
             }
         }
         



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to