We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bc0bf7 commit 7f65385Copy full SHA for 7f65385
src/library/src/main/java/com/github/sbt/junit/jupiter/internal/Configuration.java
@@ -104,7 +104,8 @@ public Optional<TestExecutionListener> createRunListener(ClassLoader classLoader
104
.map(
105
className -> {
106
try {
107
- final Object listener = classLoader.loadClass(className).newInstance();
+ final Object listener =
108
+ classLoader.loadClass(className).getDeclaredConstructor().newInstance();
109
return (TestExecutionListener) listener;
110
} catch (Exception e) {
111
throw new RuntimeException(e);
0 commit comments