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 21:37:11 UTC

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

Sebb created CRYPTO-107:
---------------------------

             Summary: 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


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)