Fix Kotlin inner class nested configuration handling
Before this commit, Kotlin inner class nested configuration
handling thrown an IndexOutOfBoundsException due to bogus filtering
of its constructor parameter reference to an instance of the outer
class.
This commit keep constructor parameter of type INSTANCE in order to
throw a more meaningful NoSuchBeanDefinitionException.
Issue: SPR-17222
@ -143,6 +143,10 @@ for serializing / deserializing JSON data is automatically registered when
@@ -143,6 +143,10 @@ for serializing / deserializing JSON data is automatically registered when
found in the classpath and a warning message will be logged if Jackson and Kotlin are
detected without the Jackson Kotlin module present.
Configuration classes can be
https://kotlinlang.org/docs/reference/nested-classes.html[top level or nested but not inner]
since the later requires a reference to the outer class.