RFR [nicl] Nested structs, unions and enums inside other structs, unions are not handled properly.

Sundararajan Athijegannathan sundararajan.athijegannathan at oracle.com
Tue Apr 3 06:22:41 UTC 2018


Right. Thing is.. nested type were not handled so far. You've unearthed 
another corner case :(

-Sundar

On 03/04/18, 10:49 AM, Henry Jen wrote:
> I had a look and are doing some test to confirm, this patch doesn’t work for anonymous struct,
>
> struct Foo {
>      struct {
>          int x;
>          int y;
>      };
> } foo;
>
> In C, you will access this as foo.x or foo.y.
>
> Cheers,
> Henry
>
>
>> On Apr 2, 2018, at 9:17 PM, Sundararajan Athijegannathan<sundararajan.athijegannathan at oracle.com>  wrote:
>>
>> Gentle reminder...
>>
>> -Sundar
>>
>> On 28/03/18, 10:52 PM, Sundararajan Athijegannathan wrote:
>>> Please review.
>>>
>>> Webrev: http://cr.openjdk.java.net/~sundar/jextract_nested_structs/webrev.00/
>>>
>>> Thanks,
>>> -Sundar


More information about the panama-dev mailing list