[foreign-preview] RFR: 8286306: Upcall wrapper class sharing

Maurizio Cimadamore mcimadamore at openjdk.java.net
Fri May 6 16:29:22 UTC 2022


On Fri, 6 May 2022 16:09:01 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

>> I think you mean in the latter case is `(Addressable)MemoryAddress` ?
>
> No, for upcalls it is `(MemoryAddress)Addressable` i.e. the return type is changed.

aaah contravariance :-)

-------------

PR: https://git.openjdk.java.net/panama-foreign/pull/679


More information about the panama-dev mailing list