Skip to content

Commit 5754bbb

Browse files
committed
fix: load class using TCCL
1 parent 38e60b3 commit 5754bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quarkus-extension/deployment/src/main/java/io/javaoperatorsdk/quarkus/extension/deployment/QuarkusExtensionProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private ControllerConfiguration createControllerConfiguration(ClassInfo info, Cl
7878
final var crType = rcInterface.arguments().get(0).name().toString();
7979
final Class<?> crClass;
8080
try {
81-
crClass = Class.forName(crType);
81+
crClass = Thread.currentThread().getContextClassLoader().loadClass(crType);
8282
} catch (ClassNotFoundException e) {
8383
throw new IllegalArgumentException("Couldn't find class " + crType);
8484
}

0 commit comments

Comments
 (0)