diff --git a/spring-context/src/main/java/org/springframework/validation/DefaultBindingErrorProcessor.java b/spring-context/src/main/java/org/springframework/validation/DefaultBindingErrorProcessor.java index 0b69e3f072d2..7d5bf02f9802 100644 --- a/spring-context/src/main/java/org/springframework/validation/DefaultBindingErrorProcessor.java +++ b/spring-context/src/main/java/org/springframework/validation/DefaultBindingErrorProcessor.java @@ -66,7 +66,7 @@ public void processMissingFieldError(String missingField, BindingResult bindingR @Override public void processPropertyAccessException(PropertyAccessException ex, BindingResult bindingResult) { - // Create field error with the exceptions's code, e.g. "typeMismatch". + // Create field error with the code of the exception, e.g. "typeMismatch". String field = ex.getPropertyName(); Assert.state(field != null, "No field in exception"); String[] codes = bindingResult.resolveMessageCodes(ex.getErrorCode(), field);