Skip to content

Commit 0f7108a

Browse files
committed
Get Native class to load in withinJar
This enables a single point of failure for UnsatisfiedLinkError in clients that have fallbacks in place.
1 parent 684570a commit 0f7108a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/z3/Z3Wrapper.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ public final class Z3Wrapper {
4747
}
4848

4949
loadFromJar();
50+
// We run this to ensure class loading of Native.
51+
debug("Z3 version: " + z3VersionString());
5052
}
5153

5254
private static void debug(String msg) {

0 commit comments

Comments
 (0)