Correct native Validator reference for fallback in SpringValidatorAdapter
Issue: SPR-15629
This commit is contained in:
parent
7cac1f1e6e
commit
b7337b304e
|
|
@ -310,7 +310,7 @@ public class SpringValidatorAdapter implements SmartValidator, javax.validation.
|
|||
}
|
||||
catch (ValidationException ex) {
|
||||
// ignore if just being asked for plain Validator
|
||||
if (Validator.class == type) {
|
||||
if (javax.validation.Validator.class == type) {
|
||||
return (T) this.targetValidator;
|
||||
}
|
||||
throw ex;
|
||||
|
|
|
|||
Loading…
Reference in New Issue