n1analytics / javallier

A Java library for Paillier partially homomorphic encryption.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in BigIntegerUtil.canLoadGmp() is not caught properly

wilko77 opened this issue · comments

In canLoadGmp(), the function call GMP.checkLoaded(); throws either a java.lang.UnsatisfiedLinkError or an AssertionError. The current try - catch block won't catch either of those, as it is looking for an Exception.

I suggest we change the catch clause to catch Error instead of Exception.

addressed in commit 05596d2