mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-25 16:29:28 +00:00
Correct native Validator reference for fallback in SpringValidatorAdapter
Issue: SPR-15629
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user