-
Bug
-
Resolution: Fixed
-
P3
-
None
-
repo-panama
The foreign API refresh changed the way in which the linker API deals with by-reference parameters/returns. By-ref parameters are mapped to the Addressable type, while By-ref returns are mapped to the MemoryAddress type. The reverse mapping is used for upcalls.
Since a functional interface generated by jextract has a factory which allows to call an upcall stub using a downcall method handle, this type mismatch has to be rectified, using type conversions, or invokeExact will fail.
Since a functional interface generated by jextract has a factory which allows to call an upcall stub using a downcall method handle, this type mismatch has to be rectified, using type conversions, or invokeExact will fail.