You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
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
The text was updated successfully, but these errors were encountered: