Add information of which automatic module doesn't the

Thiago Henrique Hupner thihup at gmail.com
Wed Mar 3 01:32:16 UTC 2021


When running some old applications in the module path, sometimes a jar
provides a service that doesn't exist in it.
So, the module system correctly informs about it, however, it doesn't
specify which module has this issue, so the way of debugging is testing
each jar individually with the --list-modules.

I think would be great if it was possible to change the exception in the
jdk.internal.module.ModulePath to show the module that has this problem.

Currently, the message is the following:
String msg = "Provider class " + cn + " not in module";
throw new InvalidModuleDescriptorException(msg);

Thank you!


More information about the jigsaw-dev mailing list