Closed
Description
Juergen Zimmermann opened SPR-6557 and commented
In org.springframework.validation.beanvalidation.SpringValidatorAdapter the methode validateValue() is wrong. Without the fix "bean validation" is useable only in part.
Current implementation:
public <T> Set<ConstraintViolation<T>> validateValue(Class<T> beanType, String propertyName, Object value, Class<?>... groups) {
return this.targetValidator.validateValue(beanType, propertyName, groups);
}
However, the argument "value" is lost inside the method body, and should be:
return this.targetValidator.validateValue(beanType, propertyName, value, groups);
Affects: 3.0 RC3
Referenced from: commits b497f6c