Uploaded image for project: 'Commons Crypto'
  1. Commons Crypto
  2. CRYPTO-107

NativeCodeLoader fails to handle UnsatisfiedLinkError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.0.0
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            sebb Sebb
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: