Know the type carried by an Addressable

Martin Pernollet martin.pernollet at protonmail.com
Fri Mar 3 15:21:38 UTC 2023


------- Original Message -------
Le jeudi 23 février 2023 à 18:23, Maurizio Cimadamore <maurizio.cimadamore at oracle.com> a écrit :

> What version of jextract are you using? Addressable has been dropped in Java 20.

I am still running on Java 19 for PanamaGL.

>> In the case of OpenGL, I can deal with it since there exists a registry defining all functions with their typed parameters, so I can generate the code able to make such conversion - but I think that would be nice to get it out of the box with JExtract!
>
> It's something on our radar. Whatever solution we end up with, it will have to balance carefully usability with performance - e.g. if we add too much information, there might be an additional overhead to create this representation, and not all jextract users might be ok with that.

This sounds great! So I'll wait for next versions of JExtract to get these extra method generated then. Eager to try this :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20230303/dfb4f7d9/attachment.htm>


More information about the panama-dev mailing list