terl / lazysodium-java

A Java implementation of the Libsodium crypto library. For the lazy dev.
https://github.com/terl/lazysodium-java/wiki
Mozilla Public License 2.0
135 stars 47 forks source link

Fix Mode.PREFER_SYSTEM switch to bundled version #57

Closed MakarovS closed 4 years ago

MakarovS commented 4 years ago

Mode.PREFER_SYSTEM didn't switch to bundled version if it failed, this should fix that. The issue is that after 4.1.0 changes LibraryLoadingException is not thrown anymore, so loadBundledLibrary is never invoked.

gurpreet- commented 4 years ago

Hi @MakarovS,

Thanks for this pull request, I appreciate it.

I have updated resource-loader to stop catching errors when loading system libraries so we can catch them in a higher level library.

Closing this.