Skip to content

Commit 0d0399a

Browse files
committed
Defensively ignore AbstractMethodError from parameterNameProvider
Issue: SPR-15856
1 parent d1f42ac commit 0d0399a

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/LocalValidatorFactoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ else if (args[0] instanceof Method) {
353353
ReflectionUtils.invokeMethod(parameterNameProviderMethod, configuration, parameterNameProvider);
354354

355355
}
356-
catch (Exception ex) {
356+
catch (Throwable ex) {
357357
// Bean Validation 1.1 API not available - simply not applying the ParameterNameDiscoverer
358358
}
359359
}

0 commit comments

Comments
 (0)