diff --git a/dubbo-filter/dubbo-filter-validation/src/main/java/com/alibaba/dubbo/validation/support/jvalidation/JValidator.java b/dubbo-filter/dubbo-filter-validation/src/main/java/com/alibaba/dubbo/validation/support/jvalidation/JValidator.java index 1c84bd17fb8..d0ec6615d35 100644 --- a/dubbo-filter/dubbo-filter-validation/src/main/java/com/alibaba/dubbo/validation/support/jvalidation/JValidator.java +++ b/dubbo-filter/dubbo-filter-validation/src/main/java/com/alibaba/dubbo/validation/support/jvalidation/JValidator.java @@ -89,7 +89,7 @@ public JValidator(URL url) { } public void validate(String methodName, Class[] parameterTypes, Object[] arguments) throws Exception { - String methodClassName = clazz.getName() + "$" + toUpperMethoName(methodName); + String methodClassName = clazz.getName() + "_" + toUpperMethoName(methodName); Class methodClass = null; try { methodClass = Class.forName(methodClassName, false, Thread.currentThread().getContextClassLoader()); @@ -157,7 +157,7 @@ private static Object getMethodParameterBean(Class clazz, Method method, Obje try { String upperName = toUpperMethoName(method.getName()); String parameterSimpleName = upperName + "Parameter"; - String parameterClassName = clazz.getName() + "$" + parameterSimpleName; + String parameterClassName = clazz.getName() + "_" + parameterSimpleName; Class parameterClass; try { parameterClass = (Class) Class.forName(parameterClassName, true, clazz.getClassLoader());