[foreign] RFR: 8225630: Tolerate unsupported type
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Tue Jun 18 11:07:33 UTC 2019
Hit 'send' too fast.
I guess how I feel about this is that we could:
1) use unresolved layouts, and some dummy carrier (Object, Void)
2) have jextract generate struct interfaces for the unresolved types, so
that you get a name - but have the layout of the interfaces be
unresolved (so that you cannot allocate them)
This patch seems to do something in between.
Maurizio
On 18/06/2019 12:05, Maurizio Cimadamore wrote:
> Hi,
> can you explain why we need a new carrier for the unknown type? The
> new carrier layout is never generated by jextract - is that just to be
> able to generate 'some' carrier type?
>
> Can we just use Object for that? Or Void?
>
> Maurizio
>
> On 12/06/2019 20:07, Henry Jen wrote:
>> Hi,
>>
>> Another short webrev[1] to make allow jextract go through when
>> encounter unsupported types.
>>
>> Basically for all unsupported type, we are going to generate a
>> unresolved layout and use the UnknownType as carrier type. Reference
>> UnknownType should cause failure at runtime, while the UnknownType
>> class itself is an indication this function/setter/getter should not
>> be used.
>>
>> Cheers,
>> Henry
>>
>> [1] http://cr.openjdk.java.net/~henryjen/panama/8225630/0/webrev/
More information about the panama-dev
mailing list