Integrated: 7903612: Nested struct typedefs fail to compile
Maurizio Cimadamore
mcimadamore at openjdk.org
Fri Dec 15 11:43:11 UTC 2023
On Fri, 15 Dec 2023 10:17:33 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This PR fixes a small issue with nested struct typedef, and another with typedef in general:
>
> * nested struct classes are emitted with the `final` modifier, which prevents them from being subclassed (e.g. in typedefs)
> * all structs have a private constructor to prevent clients from instantiating. Unfortunately this constructor also prevents subclassing (e.g. in typedef).
>
> This patch drops the `final` modifier on nested struct/unions, and also tweaks the default constructor from `private` to `protected`.
This pull request has now been integrated.
Changeset: 9648ba5a
Author: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL: https://git.openjdk.org/jextract/commit/9648ba5a24abba5ded7465e4999e319405ae99b2
Stats: 81 lines in 6 files changed: 58 ins; 12 del; 11 mod
7903612: Nested struct typedefs fail to compile
Reviewed-by: jvernee
-------------
PR: https://git.openjdk.org/jextract/pull/164
More information about the jextract-dev
mailing list