Skip to content

SpringValidatorAdapter.validateValue() is wrong [SPR-6557] #11223

Closed
@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions