Skip to content

Commit

Permalink
fix(BeanValidation): close #787
Browse files Browse the repository at this point in the history
  • Loading branch information
Authorlove committed Oct 27, 2017
1 parent 9495a7d commit d323724
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public void testValidation() {
} catch (RpcException e) {
ConstraintViolationException ve = (ConstraintViolationException) e.getCause();
Set<ConstraintViolation<?>> violations = ve.getConstraintViolations();
Assert.assertTrue(violations.size() == 3);
Assert.assertNotNull(violations);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ else if (memberValue instanceof ArrayMemberValue) {
}

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());
Expand Down

0 comments on commit d323724

Please sign in to comment.