Add reflection hints for Kotlin reflection on functions

Kotlin reflection API invocation on a specific function
may require iterating on all Java methods to find the right
Kotlin function. As a consequence, this commit adds introspection
hints on the class declared methods for all Kotlin beans since
the impact on the footprint is low.

Closes gh-29663
This commit is contained in:
Sébastien Deleuze
2023-01-10 14:39:20 +01:00
parent a516ed8739
commit 4396801933
4 changed files with 188 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor= \
org.springframework.context.aot.ReflectiveProcessorBeanFactoryInitializationAotProcessor
org.springframework.beans.factory.aot.BeanRegistrationAotProcessor=\
org.springframework.context.aot.KotlinReflectionBeanRegistrationAotProcessor