<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <p>Hi Duncan,<br>
      thanks for the report. I think the problem here is that we have
      updated jextract to use libclang directly for generating these
      comment.</p>
    <p>Now, in libclang 13, we get something like "unnamed union ...".
      We look for that string in the jextract code, and if we see that,
      we generate a more succinct comment.</p>
    <p>But you are running either a newer, or an older version, and it
      seems like instead of saying "unnamed" you get "anonymous"
      instead, which jextract is not looking for :-)</p>
    <p>So... we should probably make that logic/regex more robust.</p>
    <p>Maurizio<br>
    </p>
    <div class="moz-cite-prefix">On 14/02/2024 16:42, Duncan Gittins
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CABOqcFvND_Uy93Zbzfjen1XpPANmFM16AsC2ZK7yDTfB6pvy1A@mail.gmail.com">
      
      <div dir="ltr">
        <div>
          I've just pulled the latest jextract master branch (I think!),
          and re-run my build for JDK22 on Windows. <br>
        </div>
        <div><br>
        </div>
        <div>
          Please ignore if you are mid-way though any fixes or already
          known issue. There appears to be a glitch with the snippet
          generation.
          If any
          component of an include file starts with "u", it is treated as
          an invalid \uXXXX character sequence by javac
        </div>
        <div><br>
        </div>
        <div>
          <div style="background-color:rgb(255,255,255);padding:0px 0px 0px 2px">
            <div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:"Consolas";font-size:10pt;white-space:pre"><p style="margin:0px">    /**
     * Setter for field:
     * {@snippet lang=c :
     * union (anonymous union at C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winnt.h:16446:5) Flags
     * }
     */
</p><p style="margin:0px">
</p><p style="margin:0px">PROCESSOR_IDLESTATE_POLICY.java:222: error: illegal unicode escape
    [javac]      * union (anonymous union at C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winnt.h:16446:5) Flags
    [javac]</p><p style="margin:0px">
</p></div>
          </div>
        </div>
        <div>It's from jextract without symbol filters, but not on any
          definitions I use:</div>
        <div> <br>
        </div>
        <div>    #include <shlobj_core.h><br>
              #include <objbase.h></div>
        <div><br>
        </div>
        <div>Kind regards</div>
        <div><br>
        </div>
        <div>Duncan<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
    </blockquote>
  </body>
</html>