I have done bytecode analysis for JFFI and found that there are native methods which donot have any symbols present in any of the libraries
Example (Foreign.java declares native but the symbol is not exported by
either jffi-1.2 or jffi-1.3.11 in this repo):
com.kenai.jffi.Foreign.newNativeMethod
com.kenai.jffi.Foreign.freeNativeMethod
com.kenai.jffi.Foreign.compileNativeMethods
com.kenai.jffi.Foreign.freeCompiledMethods
com.kenai.jffi.Foreign.registerNativeMethods
com.kenai.jffi.Foreign.unregisterNativeMethods
com.kenai.jffi.Foreign.invokeArrayWithObjectsReturnObject
The native declarations exist in Foreign.class but the C implementations are gated on a build flag that is off in every Linux build shipped via JNR-FFI/JNA.
I have done bytecode analysis for JFFI and found that there are native methods which donot have any symbols present in any of the libraries
Example (Foreign.java declares
nativebut the symbol is not exported byeither jffi-1.2 or jffi-1.3.11 in this repo):
The native declarations exist in
Foreign.classbut the C implementations are gated on a build flag that is off in every Linux build shipped via JNR-FFI/JNA.