From f69b324640087e36d960f7d467a702093222d2bd Mon Sep 17 00:00:00 2001 From: Marco Collovati Date: Tue, 26 Nov 2024 11:02:39 +0100 Subject: [PATCH] fix: prevent hotswap failure if class is not found References #20389 --- .../src/main/java/com/vaadin/flow/hotswap/Hotswapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow-server/src/main/java/com/vaadin/flow/hotswap/Hotswapper.java b/flow-server/src/main/java/com/vaadin/flow/hotswap/Hotswapper.java index 63afb16a1cc..10e12d7c026 100644 --- a/flow-server/src/main/java/com/vaadin/flow/hotswap/Hotswapper.java +++ b/flow-server/src/main/java/com/vaadin/flow/hotswap/Hotswapper.java @@ -469,7 +469,7 @@ private static Class resolveClass(String className) { try { return Class.forName(className, false, Thread.currentThread().getContextClassLoader()); - } catch (ClassNotFoundException e) { + } catch (ClassNotFoundException | NoClassDefFoundError e) { LOGGER.debug("Cannot resolve class {}", className, e); } return null;