Skip to content

Commit b7337b3

Browse files
committed
Correct native Validator reference for fallback in SpringValidatorAdapter
Issue: SPR-15629
1 parent 7cac1f1 commit b7337b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-context/src/main/java/org/springframework/validation/beanvalidation/SpringValidatorAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ public <T> T unwrap(Class<T> type) {
310310
}
311311
catch (ValidationException ex) {
312312
// ignore if just being asked for plain Validator
313-
if (Validator.class == type) {
313+
if (javax.validation.Validator.class == type) {
314314
return (T) this.targetValidator;
315315
}
316316
throw ex;

0 commit comments

Comments
 (0)