Fix return value validation
Fix argument in call to applyReturnValueValidation() method in MethodValidationInterceptor.java. Method argument was passed instead of the return value of the method that was being validated. See gh-33105
This commit is contained in:
@@ -174,7 +174,7 @@ public class MethodValidationInterceptor implements MethodInterceptor {
|
||||
Object returnValue = invocation.proceed();
|
||||
|
||||
if (this.adaptViolations) {
|
||||
this.validationAdapter.applyReturnValueValidation(target, method, null, arguments, groups);
|
||||
this.validationAdapter.applyReturnValueValidation(target, method, null, returnValue, groups);
|
||||
}
|
||||
else {
|
||||
violations = this.validationAdapter.invokeValidatorForReturnValue(target, method, returnValue, groups);
|
||||
|
||||
Reference in New Issue
Block a user