You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dapeng Sun (JIRA)" <ji...@apache.org> on 2016/07/06 05:50:11 UTC

[jira] [Updated] (CRYPTO-107) NativeCodeLoader fails to handle UnsatisfiedLinkError

     [ https://issues.apache.org/jira/browse/CRYPTO-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dapeng Sun updated CRYPTO-107:
------------------------------
    Assignee: Sebb

> 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
>            Assignee: 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)