RFR: 7903360: jextract does not handle function pointer return type properly

Maurizio Cimadamore mcimadamore at openjdk.org
Tue Oct 18 10:57:29 UTC 2022


On Tue, 18 Oct 2022 10:03:11 GMT, Athijegannathan Sundararajan <sundar at openjdk.org> wrote:

>> src/main/java/org/openjdk/jextract/impl/NameMangler.java line 133:
>> 
>>> 131:     }
>>> 132: 
>>> 133:     String getReturnFiName(Declaration.Function func) {
>> 
>> Why can't `getFiName` be reused here?
>
> No, this is not a functional interface for the Function itself. It is comparable to getFiName(Declaration.Function func, int paramNum, Declaration.Variable param) - a particular parameter is of a function pointer type. Here return type is a function pointer type.

I missed that there were (already) two variants of getFIName. Ugh.

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

PR: https://git.openjdk.org/jextract/pull/90


More information about the jextract-dev mailing list