Skip to content

Commit a324953

Browse files
authored
fix: prevent hotswap failure if class is not found (#20549)
References #20389
1 parent 14b016c commit a324953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flow-server/src/main/java/com/vaadin/flow/hotswap/Hotswapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ private static Class<?> resolveClass(String className) {
469469
try {
470470
return Class.forName(className, false,
471471
Thread.currentThread().getContextClassLoader());
472-
} catch (ClassNotFoundException e) {
472+
} catch (ClassNotFoundException | NoClassDefFoundError e) {
473473
LOGGER.debug("Cannot resolve class {}", className, e);
474474
}
475475
return null;

0 commit comments

Comments
 (0)