while looking for reasons of why the call to C code fails, I set -Xcheck:jni on the JVM.
With this set, BridJ.register dies very early:
FATAL ERROR in native method: Static field ID passed to JNI
at org.bridj.JNI.bindJavaMethodsToCFunctions(Native Method)
at org.bridj.NativeEntities.addDefinitions(NativeEntities.java:149)
at org.bridj.CRuntime.register(CRuntime.java:468)
- locked <0x00000007ac30e868> (a org.bridj.cpp.CPPRuntime)
at org.bridj.CRuntime.register(CRuntime.java:345)
at org.bridj.BridJ.register(BridJ.java:355)
at org.bridj.BridJ.register(BridJ.java:192)
- locked <0x00000007abdf1998> (a java.lang.Class for org.bridj.BridJ)
while looking for reasons of why the call to C code fails, I set -Xcheck:jni on the JVM. With this set, BridJ.register dies very early:
BridJ should not conflict with -Xcheck:jni