commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CRYPTO-107) NativeCodeLoader fails to handle UnsatisfiedLinkError
Date Tue, 05 Jul 2016 22:32:11 GMT

     [ 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)

Mime
View raw message