8233922: Service binding augments module graph with observable incubator modules
Chris Hegarty
chris.hegarty at oracle.com
Tue Nov 19 14:29:30 UTC 2019
> On 18 Nov 2019, at 17:54, Alex Buckley <alex.buckley at oracle.com> wrote:
>> ..
> An incubator module's service providers will now be unavailable by default even if a module on the module path says `uses`. I believe that JEP 11 should say the following:
>
> -----
> Incubator modules are part of the JDK run-time image produced by the standard JDK build. *****However, by default, incubator modules are not resolved for applications on the class path. Furthermore, by default, incubator modules do not participate in service binding for applications on the class path or the module path.*****
>
> Applications on the class path must use the --add-modules command-line option to request that an incubator module be resolved. Applications developed as modules can specify `requires` or `requires transitive` dependences upon an incubator module directly. *****(Some incubator modules do not export packages but rather provide implementations of services. It is usually not recommended to require a module that exports no packages, but it is necessary in this case in order to resolve the incubator module and thus have it participate in service binding.)*****
>
> During the JDK build, incubator modules must be packaged ...
> -----
Thanks for the updates to JEP 11 Alex, they look good.
-Chris.
More information about the jigsaw-dev
mailing list