mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8262944: Improve exception message when automatic module lists provider class not in JAR file
Reviewed-by: dfuchs, jvernee, alanb, lancea, mchung
This commit is contained in:
parent
b8af6a9bfb
commit
c10de3538b
2 changed files with 25 additions and 6 deletions
|
@ -551,7 +551,7 @@ public class ModulePath implements ModuleFinder {
|
|||
if (!cn.isEmpty()) {
|
||||
String pn = packageName(cn);
|
||||
if (!packages.contains(pn)) {
|
||||
String msg = "Provider class " + cn + " not in module";
|
||||
String msg = "Provider class " + cn + " not in JAR file " + fn;
|
||||
throw new InvalidModuleDescriptorException(msg);
|
||||
}
|
||||
providerClasses.add(cn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue