Integrated: 7903673: Jextract throws NPE when generating enum constant javadoc
Maurizio Cimadamore
mcimadamore at openjdk.org
Mon Feb 19 15:49:07 UTC 2024
On Mon, 19 Feb 2024 13:58:42 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This PR fixes `TreeMaker` so that it doesn't try to generate javadoc for `null` enum constants.
>
> Unfortunately I was not able to reproduce on Linux. The problem seems to appear on MacOS when extracting this enum:
>
>
> enum __CFByteOrder {
> CFByteOrderUnknown,
> CFByteOrderLittleEndian,
> CFByteOrderBigEndian
> };
>
>
> But there doesn't seem to be anything peculiar with this (and this does work when extracted in isolation).
> It might indicate a deeper issue in libclang. For now, I made the code more robust, so that it handles possible null enum constants (these are left out from the IR).
This pull request has now been integrated.
Changeset: 759f47e4
Author: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL: https://git.openjdk.org/jextract/commit/759f47e49167f2cbbe520cde7d9dea82c56bd618
Stats: 9 lines in 1 file changed: 3 ins; 2 del; 4 mod
7903673: Jextract throws NPE when generating enum constant javadoc
Reviewed-by: jvernee, sundar
-------------
PR: https://git.openjdk.org/jextract/pull/219
More information about the jextract-dev
mailing list