Ok, find the bug, obvious in retrospect, there is no way to declare a concealed package using the ModuleDescriptor.Builder so my configuration miss concealed packages thus the configuration that i try to verify is ill formed.
The builder should be able to declare concealed packages or all packages. Rémi ----- Mail original ----- > De: "Alan Bateman" <[email protected]> > À: "Remi Forax" <[email protected]>, "jigsaw-dev" > <[email protected]> > Envoyé: Samedi 19 Novembre 2016 18:22:13 > Objet: Re: Configuration.resolveRequires want providers of services to be in > an exported package > 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
