-
Notifications
You must be signed in to change notification settings - Fork 38.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReflectJvmMapping.getKotlinFunction returns null for Kotlin properties #34284
Comments
Unfortunately, we can't triage this issue right now. You have not given us much to work with. Is this a regression, meaning that the sample in the linked issue doesn't work anymore as it did after the initial fix? Which Spring and Kotlin versions are you using? How can we reproduce the problem? |
@wolfseifert that's not an acceptable answer: it's totally fair that one of us asks for additional details. If you want us to consider the report, make it actionable as Brian asked. |
Here is a small reproducer: spring-boot.zip
The Versions:
OS: Linux or Windows |
This commit adds support for Kotlin properties in Spring WebFlux controllers, supported for reasons explained in spring-projectsgh-31856, with kotlinx.serialization codecs. See spring-projectsgh-34284
This commit adds support for Kotlin properties in Spring WebMVC controllers, supported for reasons explained in spring-projectsgh-31856, with kotlinx.serialization converters. Closes spring-projectsgh-34284
Fixed with the limitation that the type used for Kotlin properties is created from the Java type, not the Kotlin one, since As mentioned in #31856 (comment), the main reason we support this use case is to avoid unnecessary Kotlin checks at Kotlin properties are supported in a best effort fashion, this is not something I recommend or plan to document explicitly. If more side effects are found, I may decide to remove the support in a future major release, but for now let's try to keep this pragramatic status quo. |
ReflectJvmMapping.getKotlinFunction
returnsnull
for Kotlin properties and must be handled properly (see #31856).I hit another erroneous usage here:
More
Assert.notNull
on the value returned fromReflectJvmMapping.getKotlinFunction
can be found in spring-framework sources.The text was updated successfully, but these errors were encountered: