junit-team/junit5 · error · JUnitException
Failed to load class with name '${binaryName}'.
Error message
Failed to load class with name '${binaryName}'. What it means
Error "Failed to load class with name '${binaryName}'." thrown in junit-team/junit5.
Source
Thrown at junit-platform-commons/src/main/java/org/junit/platform/commons/util/ModuleUtils.java:283
// @formatter:on
}
}
catch (IOException e) {
throw new JUnitException("Failed to read contents of " + reference + ".", e);
}
}
/**
* Load class by its binary name.
*
* @see ClassLoader#loadClass(String)
*/
private Class<?> loadClassUnchecked(String binaryName) {
try {
return classLoader.loadClass(binaryName);
}
catch (ClassNotFoundException e) {
throw new JUnitException("Failed to load class with name '" + binaryName + "'.", e);
}
}
}
/**
* {@link ModuleReference} resource class scanner.
*
* @since 1.11
*/
static class ModuleReferenceResourceScanner {
private final ResourceFilter resourceFilter;
private final ClassLoader classLoader;
ModuleReferenceResourceScanner(ResourceFilter resourceFilter, ClassLoader classLoader) {
this.resourceFilter = resourceFilter;
this.classLoader = classLoader;View on GitHub (pinned to 956246301e)
When it happens
Trigger: Thrown at junit-platform-commons/src/main/java/org/junit/platform/commons/util/ModuleUtils.java:283 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of junit-team/junit5@956246301e (2026-08-04).
Data as JSON: /data/errors/e43bde30ecf2e40e.json.
Report an issue: GitHub.