[foreign-jextract] RFR: 8252121: jextract generated code fails with ABI for typedefed array type parameters
Athijegannathan Sundararajan
sundar at openjdk.java.net
Thu Aug 20 18:09:51 UTC 2020
On Thu, 20 Aug 2020 17:51:13 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> TypeMaker now special cases typedef'ed arrays for argument types for functions.
>
> src/jdk.incubator.jextract/share/classes/jdk/internal/jextract/impl/TypeMaker.java line 240:
>
>> 239: if (t.kind() == Delegated.Kind.TYPEDEF && t.type() instanceof Type.Array) {
>> 240: return visitArray((Type.Array)t.type(), aVoid);
>> 241: }
>
> shouldn't we just recurse on the type() field? what if it's a typedef of a typedef of a typedef....
type() seems to return canonical type. I can another test for typedef of typedef.
-------------
PR: https://git.openjdk.java.net/panama-foreign/pull/287
More information about the panama-dev
mailing list