[External] : Re: provides and requires static ... runtime error
Josiah Noel
josiahnoel at gmail.com
Tue Apr 25 04:32:47 UTC 2023
>
> Does this work without *any* module having a `requires y.inject`?
>
Yes.
If so, how is the y.inject module get included without a `requires
> y.inject` being specified?
>
It will resolve when a module uses the x.spi.Plugin it provides. (x in this
case) Hence, there is no need for any module to require y.inject. (as it
doesn't export anything).
If there is no module on the module path that uses the x.spi.Plugin, the
y.inject module will not resolve, and no exception will be thrown.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jigsaw-dev/attachments/20230425/baa8ae90/attachment.htm>
More information about the jigsaw-dev
mailing list