From 44a4c6045d729f7497bae01df83abf8105b15a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A2=A7=E8=BF=9C?= Date: Wed, 22 Apr 2020 13:44:57 +0800 Subject: [PATCH] feat:3311 --- pom.xml | 2 +- .../java/com/alipay/hessian/NameBlackListFilter.java | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 9a198bc..1d5e4c5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.alipay.sofa hessian - 3.3.10 + 3.3.11 jar ${project.groupId}:${project.artifactId} diff --git a/src/main/java/com/alipay/hessian/NameBlackListFilter.java b/src/main/java/com/alipay/hessian/NameBlackListFilter.java index ce2e312..ec50910 100644 --- a/src/main/java/com/alipay/hessian/NameBlackListFilter.java +++ b/src/main/java/com/alipay/hessian/NameBlackListFilter.java @@ -39,11 +39,19 @@ public class NameBlackListFilter implements ClassNameFilter { private static Logger judgeLogger() { try { - NameBlackListFilter.class.getClassLoader().loadClass("com.alipay.sofa.common.log.LoggerSpaceManager"); + Class.forName("com.alipay.sofa.common.log.LoggerSpaceManager", true, + NameBlackListFilter.class.getClassLoader()); } catch (Throwable e) { //do nothing return null; } + //user can use a specify class to do some extra info in static + try { + Class.forName("com.alipay.sofa.middleware.log.ConfigLogFactory", true, + NameBlackListFilter.class.getClassLoader()); + } catch (Throwable e) { + //do nothing + } return com.alipay.sofa.common.log.LoggerSpaceManager.getLoggerBySpace(HESSIAN_SERIALIZE_LOG_NAME, CONFIG_LOG_SPACE_NAME);