Review Request: JDK-8174826 jlink does not provide support for linking in service provider modules

Mandy Chung mandy.chung at
Thu Mar 23 17:04:46 UTC 2017

> On Mar 23, 2017, at 7:58 AM, Alan Bateman <alan.bateman at> wrote:
> On 22/03/2017 19:11, Mandy Chung wrote:
>> Webrev:
>> This is a proposal to resolve the open issue listed in JEP 282
>> about jlink and service binding.
> The output for --suggest-providers looks good.
> For --verbose then the "Providers: " list looks okay when used in conjunction with --bind-services. I would be tempted to leave it out when --bind-services is not specified because there is no service binding.

When linking with explicit providers via —-add-modules, would you think it may be useful to see the list of providers?

> A few random comments:
> - JImageTask is now using toUpperCase() which is locale specific and should be changed.


> - Jlink.moduleFinder() unconditionally uses the runtime version. Not a bug introduced by your changes but this method really needs to locate java.base and use its version when creating the module path. We should probably create an issue for that and fix it another time.

I created to track this.

> - JlinkTask.uses then the stream() isn't needed as Set defines forEach.

Good catch.  Fixed.

Revised webrev:


More information about the jigsaw-dev mailing list