Configuration.resolveRequires want providers of services to be in an exported package
Alan Bateman
Alan.Bateman at oracle.com
Sat Nov 19 17:22:13 UTC 2016
On 19/11/2016 14:34, Remi Forax wrote:
> Hi all, hi Alan,
>
> With 9-ea+144-jigsaw-nightly-h5735-20161117,
> it seems that Configuration.resolveRequires() do more checks than necessary,
> it checks that each provider of a service has its package exported, something which is not required by the spec.
> Maybe i'm wrong, but it should just check that the provider is in a package of the module, it seems that the error message agree :).
>
> cheers,
> Rémi
>
> Exception in thread "main" java.lang.module.ResolutionException: Provider com.github.forax.pro.main.JSONRunner not in module com.github.forax.pro.main
>
This exception just means that the package isn't in the
com.github.forax.pro.main, are you sure it's in the module?
-Alan
More information about the jigsaw-dev
mailing list