commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dapeng Sun (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CRYPTO-107) NativeCodeLoader fails to handle UnsatisfiedLinkError
Date Wed, 06 Jul 2016 05:50:11 GMT

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

Mime
View raw message