You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2016/07/05 22:32:11 UTC
[jira] [Resolved] (CRYPTO-107) NativeCodeLoader fails to handle
UnsatisfiedLinkError
[ https://issues.apache.org/jira/browse/CRYPTO-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebb resolved CRYPTO-107.
-------------------------
Resolution: Fixed
Fix Version/s: 1.0.0
CRYPTO-107 NativeCodeLoader fails to handle UnsatisfiedLinkError
Catch UnsatisfiedLinkError
Save the cause on loading error
Add unit tests
Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/b1d66b82
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/b1d66b82
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/b1d66b82
> NativeCodeLoader fails to handle UnsatisfiedLinkError
> -----------------------------------------------------
>
> Key: CRYPTO-107
> URL: https://issues.apache.org/jira/browse/CRYPTO-107
> Project: Commons Crypto
> Issue Type: Bug
> Reporter: Sebb
> Fix For: 1.0.0
>
>
> UnsatisfiedLinkError can be returned by System.loadLibrary and System.load.
> The code needs to catch this.
> It would also be useful to save the exception and provide a means to access it when loading fails.
> It's also rather difficult to unit test the code as the class can only be loaded once per run. Moving the bulk of the static block code into a package-protected method would help here.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)