invoking jextract multiple times overwrites constants$0
Sundararajan Athijegannathan
sundararajan.athijegannathan at oracle.com
Thu Aug 25 14:51:39 UTC 2022
There is a dedicated mailing list for jextract:
https://mail.openjdk.org/mailman/listinfo/jextract-dev
Sometimes during discussions on libraries using Panama, we slip in jextract usage 🙂 And that leads to jextract related questions here. For jextract related queries/bug reports, please do use that email list.
To answer your question: multi-session jextract runs will work fine provided you use different packages for each run. That way, you don't make assumptions on the generated class names. Yes, only customization is for header class name because most other things are package-private implementation classes.
Hope this helps,
-Sundar
________________________________
From: panama-dev <panama-dev-retn at openjdk.org> on behalf of Sebastian Stenzel <sebastian.stenzel at gmail.com>
Sent: 25 August 2022 19:03
To: panama-dev at openjdk.org <panama-dev at openjdk.org>
Subject: invoking jextract multiple times overwrites constants$0
Hi all,
is jextract still being discussed on this mailing list or did it move? I'll assume it is ok for me to ask a question here, but please feel free to point me to the correct place otherwise.
I'm running jextract with the same --target-package and the same --output multiple times, but for different header files. While I have full control over the name of the java files generated by specifying the --header-class-name, the constants$n.java files have a fixed name. I.e. the second run of jextract will overwrite these files generated by the first run.
Is there a workaround? Or is it just not intended to run jextract with the same --output and --target-package for different header files?
Thanks!
Sebastian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/panama-dev/attachments/20220825/f5e66dd8/attachment-0001.htm>
More information about the panama-dev
mailing list