Files
spring-framework/spring-core
Sébastien Deleuze 90400757e8 Avoid Kotlin reflection for non-suspending return types
Previously, KotlinDelegate.getReturnType() and getGenericReturnType()
resolved the KFunction of every Kotlin method, which materializes the
members of the declaring KClass and is costly at startup. Kotlin
reflection is only needed to resolve the return type of suspending
functions, so both methods now only use it when
KotlinDetector.isSuspendingFunction() returns true.

Closes gh-37300

Signed-off-by: Sébastien Deleuze <sdeleuze@users.noreply.github.com>
2026-10-05 10:53:14 +02:00
..