Support Kotlin value class properties in SpEL

This commit adds support for inlined Kotlin value
class properties in SpEL by leveraging Kotlin
reflection instead of Java reflection broken
by the mangled method name.

Closes gh-30468
This commit is contained in:
Sébastien Deleuze
2023-08-11 16:52:44 +02:00
parent 566621f7e3
commit 1e73439955
3 changed files with 60 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ apply plugin: "kotlin"
dependencies {
api(project(":spring-core"))
optional("org.jetbrains.kotlin:kotlin-reflect")
testImplementation(testFixtures(project(":spring-core")))
testImplementation("org.jetbrains.kotlin:kotlin-reflect")
testImplementation("org.jetbrains.kotlin:kotlin-stdlib")