You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, jextract-swift emits Java code that uses the Foreign Function & Memory API introduced in JDK 22. For environments with older Java versions, we should consider introducing a mode that instead uses JNI. The produced Java classes could have the same interfaces, but any methods implemented by Swift would be declared as native in Java and implemented via a @_cdecl stub in Swift (similar to what we do with the @ImplementsJava macro).
The text was updated successfully, but these errors were encountered:
Currently,
jextract-swift
emits Java code that uses the Foreign Function & Memory API introduced in JDK 22. For environments with older Java versions, we should consider introducing a mode that instead uses JNI. The produced Java classes could have the same interfaces, but any methods implemented by Swift would be declared asnative
in Java and implemented via a@_cdecl
stub in Swift (similar to what we do with the@ImplementsJava
macro).The text was updated successfully, but these errors were encountered: