[foreign-jextract] RFR: 8249810: Jextract should generate parameter types with Addressable type

Maurizio Cimadamore mcimadamore at openjdk.java.net
Tue Jul 21 23:25:50 UTC 2020


On Tue, 21 Jul 2020 22:03:08 GMT, Henry Jen <henryjen at openjdk.org> wrote:

> What I am suggesting is simply saying you don't need add sigtype, simply take the incoming method type and adapt
> MemoryAddress into Addressable.address().

Not sure I get it. I think this same builder code is reused both for downcalls and upcalls; but we don't want to do the
transformation for upcalls. So at the very least we'd need to pass a boolean to turn the transformation on/off. If we
go down this path, then I guess TypeTranslator could be reverted back to what it was - is that what you are suggesting?

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

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


More information about the panama-dev mailing list