Correct native Validator reference for fallback in SpringValidatorAdapter

Issue: SPR-15629
This commit is contained in:
Juergen Hoeller 2017-06-07 18:40:52 +02:00
parent 7cac1f1e6e
commit b7337b304e
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ public class SpringValidatorAdapter implements SmartValidator, javax.validation.
} }
catch (ValidationException ex) { catch (ValidationException ex) {
// ignore if just being asked for plain Validator // ignore if just being asked for plain Validator
if (Validator.class == type) { if (javax.validation.Validator.class == type) {
return (T) this.targetValidator; return (T) this.targetValidator;
} }
throw ex; throw ex;