<div dir="ltr"><div dir="ltr"><div dir="ltr">As requested, I have created a simple example to replicate this issue. <a href="https://github.com/SentryMan/module-directive-bug/tree/master">SentryMan/module-directive-bug: showcase annotation processing bug (github.com)</a><input name="virtru-metadata" type="hidden" value="{"email-policy":{"disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"enableNoauth":false,"expandedWatermarking":false,"expires":false,"sms":false,"expirationNum":1,"expirationUnit":"days","isManaged":false,"persistentProtection":false},"attachments":{},"compose-id":"1","compose-window":{"secure":false}}"></div></div><br><div class="gmail_quote" style=""><div dir="ltr" class="gmail_attr">On Fri, Aug 25, 2023 at 9:00 PM Josiah Noel <<a href="mailto:josiahnoel@gmail.com">josiahnoel@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Say I got this module<div><br></div><div>```</div><div><div style="background-color:rgb(28,31,34);padding:0px 0px 0px 2px"><div style="color:rgb(199,205,209);font-family:Consolas;white-space:pre-wrap"><p style="margin:0px"><span style="color:rgb(255,0,127)">module</span><span style="color:rgb(207,191,173)"> nima.example {</span></p><p style="margin:0px"><span style="color:rgb(207,191,173)">  </span><span style="color:rgb(255,0,127)">requires</span><span style="color:rgb(207,191,173)"> io.avaje.http.client;</span></p><p style="margin:0px"><span style="color:rgb(207,191,173)">  </span><span style="color:rgb(255,0,127)">requires</span><span style="color:rgb(207,191,173)"> io.avaje.http.api;</span></p><p style="margin:0px"><span style="color:rgb(207,191,173)">  </span><span style="color:rgb(255,0,127)">provides</span><span style="color:rgb(207,191,173)"> io.</span><span style="color:rgb(82,227,246)">avaje</span><span style="color:rgb(207,191,173)">.</span><span style="color:rgb(82,227,246)">http</span><span style="color:rgb(207,191,173)">.client.</span><span style="color:rgb(82,227,246)">HttpClient</span><span style="color:rgb(207,191,173)">.</span><span style="color:rgb(82,227,246)">GeneratedComponent</span><span style="color:rgb(207,191,173)"> </span><span style="color:rgb(255,0,127)">with</span></p><p style="margin:0px"><span style="color:rgb(207,191,173)">      com.jojo.helidon.api.client.httpclient.</span><span style="color:rgb(82,227,246)">GeneratedHttpComponent</span><span style="color:rgb(207,191,173)">;</span></p><p style="margin:0px"><span style="color:rgb(207,191,173)">}</span></p><p style="font-size:18pt;margin:0px"></p></div></div></div><div>```</div><div>and I generate <span style="font-family:Consolas;white-space:pre-wrap;background-color:rgb(28,31,34);color:rgb(207,191,173)">com.jojo.helidon.api.client.httpclient.</span><span style="font-family:Consolas;white-space:pre-wrap;background-color:rgb(28,31,34);color:rgb(82,227,246)">GeneratedHttpComponent</span> in the last round of processing. When I get the module element during normal processing and so much as call `ModuleElement#getDirectives` and do nothing else, the processor will correctly generate, but compilation will still fail.(if I take out the module-info from the project it works though) I'm pretty sure it might have to do with the fact that <span style="color:rgb(82,227,246);font-family:Consolas;white-space:pre-wrap;background-color:rgb(28,31,34)">GeneratedHttpComponent</span> is created in the last round. Even so, not sure why it fails the compilation.</div></div></div></div></div></div></div>
</blockquote></div></div>