From a1f4fa3b101286c7594de5ef2cbbb7e63d86836d Mon Sep 17 00:00:00 2001 From: "Taro L. Saito" Date: Sat, 28 Nov 2020 09:46:07 -0800 Subject: [PATCH] Fix pure-java fallback --- src/main/java/org/xerial/snappy/SnappyLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/xerial/snappy/SnappyLoader.java b/src/main/java/org/xerial/snappy/SnappyLoader.java index 667dd9f5..31e0e470 100644 --- a/src/main/java/org/xerial/snappy/SnappyLoader.java +++ b/src/main/java/org/xerial/snappy/SnappyLoader.java @@ -168,7 +168,7 @@ static synchronized SnappyApi loadSnappyApi() setSnappyApi(new SnappyNative()); } } - catch(Exception e) { + catch(Throwable e) { // Fall-back to pure-java Snappy implementation setSnappyApi(new PureJavaSnappy()); }