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);