Skip to content

Commit f086f9d

Browse files
committed
Better exception error message in case runtime modules are not recorded for a given loader
1 parent 7561f58 commit f086f9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ModuleLayerFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ public Module getRuntimeModuleForHostedModule(ClassLoader loader, String hostedM
706706
if (optional) {
707707
return null;
708708
} else {
709-
throw VMError.shouldNotReachHere("Failed to find runtime module for hosted module " + hostedModuleName + ". No runtime modules have been registered for class loader: " + loader);
709+
throw VMError.shouldNotReachHere("Failed to find runtime module for hosted module " + hostedModuleName + ". No runtime modules have been registered for class loader: " + loader.getName());
710710
}
711711
}
712712
Module runtimeModule = loaderRuntimeModules.get(hostedModuleName);

0 commit comments

Comments
 (0)