<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
There is a dedicated mailing list for jextract:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<a href="https://mail.openjdk.org/mailman/listinfo/jextract-dev" id="LPlnk598134">https://mail.openjdk.org/mailman/listinfo/jextract-dev</a><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Sometimes during discussions on libraries using Panama, we slip in jextract usage
<span id="🙂">🙂 And that leads to jextract related questions here. For jextract related queries/bug reports, please do use that email list.</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span>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.</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span><br>
</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span>Hope this helps,</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span>-Sundar</span></div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> panama-dev <panama-dev-retn@openjdk.org> on behalf of Sebastian Stenzel <sebastian.stenzel@gmail.com><br>
<b>Sent:</b> 25 August 2022 19:03<br>
<b>To:</b> panama-dev@openjdk.org <panama-dev@openjdk.org><br>
<b>Subject:</b> invoking jextract multiple times overwrites constants$0</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi all,<br>
<br>
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.<br>
<br>
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.<br>
<br>
Is there a workaround? Or is it just not intended to run jextract with the same --output and --target-package for different header files?<br>
<br>
Thanks!<br>
Sebastian</div>
</span></font></div>
</body>
</html>