From 49bf36e83f43ef6130bd5fe9ab04bc94d92237e6 Mon Sep 17 00:00:00 2001 From: Shawn Yang Date: Sun, 24 Mar 2024 20:04:31 +0800 Subject: [PATCH] feat(java): skip print exception when class not exist (#1423) skip print exception when `deserializeUnexistedClass` option enabled and class not exist --- .../src/main/java/org/apache/fury/resolver/ClassResolver.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/java/fury-core/src/main/java/org/apache/fury/resolver/ClassResolver.java b/java/fury-core/src/main/java/org/apache/fury/resolver/ClassResolver.java index 4f04f3bb63..23bc44e5be 100644 --- a/java/fury-core/src/main/java/org/apache/fury/resolver/ClassResolver.java +++ b/java/fury-core/src/main/java/org/apache/fury/resolver/ClassResolver.java @@ -1698,8 +1698,7 @@ private Class loadClass(String className) { "Class %s not found from classloaders [%s, %s]", className, fury.getClassLoader(), Thread.currentThread().getContextClassLoader()); if (fury.getConfig().deserializeUnexistedClass()) { - // ex.printStackTrace(); - LOG.error(msg, e); + LOG.warn(msg); // FIXME create a subclass dynamically may be better? return UnexistedSkipClass.class; }