-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.x: Pico generated module-info.java has redundant uses
#6631
Comments
From my reading (see below) it seems to me it is slightly more than this.
Practically speaking, however, it is really impossible for us to know what is Service Loaded and what is not. The heuristic that is in use right now will look at the For example:
The Pico code-generated interceptor (in module B) implements the Fwiw, The bottom line here is I think Pico is erroring on the side of safety since it doesn't really know what is Service Loaded. If you have a suggestion for a better heuristic then LMK. |
|
Per discussion offline w/ @tomas-langer , he suggested to remove the |
Pico - generates
uses
andprovides
, even though it does not.uses
should only be explicitly defined if the service loader is used from that module,provides
is only to declare that the module implements a service provider interface loaded using service loader.Example from a test (
pico/tests/resources-pico/src/test/resources/expected/module-info.java._pico_
):The text was updated successfully, but these errors were encountered: