diff --git a/spring-context/src/main/java/org/springframework/validation/beanvalidation/SpringValidatorAdapter.java b/spring-context/src/main/java/org/springframework/validation/beanvalidation/SpringValidatorAdapter.java index 9934c104237..6d46113d831 100644 --- a/spring-context/src/main/java/org/springframework/validation/beanvalidation/SpringValidatorAdapter.java +++ b/spring-context/src/main/java/org/springframework/validation/beanvalidation/SpringValidatorAdapter.java @@ -191,9 +191,9 @@ public class SpringValidatorAdapter implements SmartValidator, javax.validation. * Return FieldError arguments for a validation error on the given field. * Invoked for each violated constraint. *
The default implementation returns a first argument indicating the field name - * (of type DefaultMessageSourceResolvable, with "objectName.field" and "field" as codes). - * Afterwards, it adds all actual constraint annotation attributes (i.e. excluding - * "message", "groups" and "payload") in alphabetical order of their attribute names. + * (see {@link #getResolvableField}). Afterwards, it adds all actual constraint + * annotation attributes (i.e. excluding "message", "groups" and "payload") in + * alphabetical order of their attribute names. *
Can be overridden to e.g. add further attributes from the constraint descriptor. * @param objectName the name of the target object * @param field the field that caused the binding error @@ -205,8 +205,7 @@ public class SpringValidatorAdapter implements SmartValidator, javax.validation. */ protected Object[] getArgumentsForConstraint(String objectName, String field, ConstraintDescriptor> descriptor) { List