[foreign-jextract] RFR: 8244728: jextract generates separate nested class for struct and union typedefs
mcimadamore at openjdk.java.net
Mon May 11 12:32:21 UTC 2020
On Mon, 11 May 2020 12:21:10 GMT, Athijegannathan Sundararajan <sundar at openjdk.org> wrote:
> * adding a subclass for struct/union typedefs rather than separate classes
> * piggybacking fix for MemoryLayout::offset->MemoryLayout::bitOffset change
Let's see how it goes. Note that this change relies on the fact that superclass static members are accessible via
subtypes e.g. Sub.superMethod();
This idiom is generally considered *bad* and there are places in the language (e.g. method references) where this is
actually met with a compile-time error (e.g. `Sub::superMethod` is not a valid method reference).
Marked as reviewed by mcimadamore (Committer).
More information about the panama-dev