<div dir="auto">> <span style="font-size:12.8px">Now say some project adds the X Jar and the Y jar,</span><div dir="auto"><span style="font-size:12.8px"><br></span></div><div dir="auto"><span style="font-size:12.8px">That is not the issue we have though,  but instead the issue we have is if the application ONLY has y.jar (this fails module resolution at runtime on startup).</span></div><div dir="auto"><span style="font-size:12.8px"><br></span></div><div dir="auto"><span style="font-size:12.8px">If y.jar contains 2 modules but there is no x module in the module-path ... how does the second x.y module in y.jar work / how does it change the module resolution so that it does not produce the same error? </span></div><div dir="auto"><span style="font-size:12.8px"><br></span></div><div dir="auto"><span style="font-size:12.8px"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 23 Apr 2023, 10:50 am Josiah Noel, <<a href="mailto:josiahnoel@gmail.com">josiahnoel@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><div dir="auto"><br></div><div dir="auto"><div dir="auto">How would this solve the issue? I can't see how having a second module on the same jar/artifact would work for this case. </div></div></div></div></blockquote><div><br></div><div> Here's how I envision it. In Jar Y, we'd have two modules. </div><div><br></div><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="auto"><div dir="auto"><div class="gmail_quote"><div><br> module y {</div><br></div> exports y.pkgs;</div><br></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><div class="gmail_quote">}</div></div></div></blockquote></div></div><div class="gmail_quote"><br></div><div class="gmail_quote">and in the second module, we would have the SPI impl class</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><div dir="auto"><div dir="auto"><br></div></div></div><div dir="auto"><div class="gmail_quote"><div> module y.inject {</div>  requires static x;</div>  provides x.plugin with y.inject.PluginImpl;</div><br></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div dir="auto"><div class="gmail_quote">}</div></div></div></blockquote><div><br></div><div>Now say some project adds the X Jar and the Y jar, the modules should resolve and X should service load the SPI from the y.inject module.</div></div><div class="gmail_quote"><div> </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="auto"><div dir="auto"></div><div dir="auto">Instead of a second module my gut says that what would solve this is a: <br></div><div dir="auto"> 'provides static'</div></div></blockquote><div><br></div><div>I'd like this too, but I don't think it's gonna happen.</div></div><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":"3","compose-window":{"secure":false}}"></div>
</blockquote></div>