RFR: JDK-8262944: Improve exception message when automatic module lists provider class not in JAR file
Christian Stein
cstein at openjdk.java.net
Thu Sep 23 13:33:55 UTC 2021
On Thu, 23 Sep 2021 11:26:26 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> This commit appends the name of the JAR file to the exception message for when automatic module lists a non-existing provider class.
>
> src/java.base/share/classes/jdk/internal/module/ModulePath.java line 554:
>
>> 552: String pn = packageName(cn);
>> 553: if (!packages.contains(pn)) {
>> 554: String msg = "Provider class " + cn + " not in module created for " + fn;
>
> "not in module created" isn't quite right as the module cannot be created. Maybe you could change it to "not in JAR file"
Will do so.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5543
More information about the core-libs-dev
mailing list