You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fury.apache.org by ch...@apache.org on 2024/03/24 12:04:34 UTC

(incubator-fury) branch main updated: feat(java): skip print exception when class not exist (#1423)

This is an automated email from the ASF dual-hosted git repository.

chaokunyang pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-fury.git


The following commit(s) were added to refs/heads/main by this push:
     new 49bf36e8 feat(java): skip print exception when class not exist (#1423)
49bf36e8 is described below

commit 49bf36e83f43ef6130bd5fe9ab04bc94d92237e6
Author: Shawn Yang <sh...@gmail.com>
AuthorDate: Sun Mar 24 20:04:31 2024 +0800

    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 4f04f3bb..23bc44e5 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 @@ public class ClassResolver {
                 "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;
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fury.apache.org
For additional commands, e-mail: commits-help@fury.apache.org