Fix jdk-differences for encryption patch

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1553340 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
kiwiwings 2013-12-24 23:55:17 +00:00
parent c72965c8b2
commit 82958a11cb

View File

@ -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);
}
}