diff --git a/src/main/java/com/alibaba/com/caucho/hessian/io/ClassFactory.java b/src/main/java/com/alibaba/com/caucho/hessian/io/ClassFactory.java index 09833e32..98aec150 100644 --- a/src/main/java/com/alibaba/com/caucho/hessian/io/ClassFactory.java +++ b/src/main/java/com/alibaba/com/caucho/hessian/io/ClassFactory.java @@ -104,7 +104,11 @@ private boolean isAllow(String className) } } - return false; + if (_isWhitelist) { + return false; + } + + return true; } public void setWhitelist(boolean isWhitelist)