Previously, a customer was set regardless of the fact that it is
supported on the target bean. DataBinder has an actual assertion check
that would fail in such a case.
We now associate the custom validator only if it supports the target
bean.
Fixes gh-3581
@ -321,13 +322,15 @@ public class ConfigurationPropertiesBindingPostProcessor implements BeanPostProc
@@ -321,13 +322,15 @@ public class ConfigurationPropertiesBindingPostProcessor implements BeanPostProc
@ -133,6 +134,39 @@ public class ConfigurationPropertiesBindingPostProcessorTests {
@@ -133,6 +134,39 @@ public class ConfigurationPropertiesBindingPostProcessorTests {
@ -373,6 +407,50 @@ public class ConfigurationPropertiesBindingPostProcessorTests {
@@ -373,6 +407,50 @@ public class ConfigurationPropertiesBindingPostProcessorTests {