[foreign-jextract] Integrated: 8252899: jextract can't handle multiple extern declarations that have the same name, but a different type name

Athijegannathan Sundararajan sundar at openjdk.java.net
Tue Sep 8 12:36:14 UTC 2020


On Tue, 8 Sep 2020 12:28:09 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> Hi,
> 
> This PR let's jextract handle cases like the one described in the bug:
> 
>     typedef int MyInt;
> 
>     extern const int x;
>     extern const MyInt x;
> 
> Where the same global variable is re-declared, but slightly differently.
> 
> The current code is de-duping globals using the declaration. Changing this to de-duping by name allows use to also
> handle these cases.
> Thanks,
> Jorn

Marked as reviewed by sundar (Committer).

-------------

PR: https://git.openjdk.java.net/panama-foreign/pull/313


More information about the panama-dev mailing list