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:
parent
c72965c8b2
commit
82958a11cb
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user