Skip to content

Commit

Permalink
feat(java): skip print exception when class not exist (#1423)
Browse files Browse the repository at this point in the history
skip print exception when `deserializeUnexistedClass` option enabled and
class not exist
  • Loading branch information
chaokunyang authored Mar 24, 2024
1 parent 50058ec commit 49bf36e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 49bf36e

Please sign in to comment.