RFR: JDK-8262944: Improve exception message when automatic module lists provider class not in JAR file
Alan Bateman
alanb at openjdk.java.net
Thu Sep 23 11:29:56 UTC 2021
On Thu, 16 Sep 2021 09:06:20 GMT, Christian Stein <cstein 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"
-------------
PR: https://git.openjdk.java.net/jdk/pull/5543
More information about the core-libs-dev
mailing list