-
Notifications
You must be signed in to change notification settings - Fork 682
PropertyAccessingMethodInterceptor
not able to look up property for Kotlin property with interface-inherited accessor method
#3146
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
Comments
Thank you for getting in touch. Please share the entire sample (something that we can unzip or git clone, build, and deploy) that reproduces the problem. |
Here you have, you can use the unit test reproduce it |
There are a few issues. First, your property is named Secondly, Kotlin's |
Related to #3140 |
PropertyAccessingMethodInterceptor
not able to look up property for Kotlin property with interface-inherited accessor method
We now attempt to detect property accessors for properties declared in Kotlin that do not have a Kotlin-style accessor but one that instead comes from an interface. Also, we specialize accessor methods that are inherited from a Java superclass but override accessors in the Kotlin realm. Closes #3140 Closes #3146
We now attempt to detect property accessors for properties declared in Kotlin that do not have a Kotlin-style accessor but one that instead comes from an interface. Also, we specialize accessor methods that are inherited from a Java superclass but override accessors in the Kotlin realm. Closes spring-projects#3140 Closes spring-projects#3146
Just upgraded to spring boot 3.3.3 and I'm having a problem with Projections. I'm currently using
Spring Boot: 3.3.3
Kotlin: 2.0.20
Created a sample project to test it easily and on this one I decided to downgrade Koltin to version 1.9.25.
For some reason with the new version. I cannot longer access the id using the EntityProjection interface. I get the error:
If I force the version of data bom to 2024.0.2 everything works again and I'm able to access the id using the projection
The text was updated successfully, but these errors were encountered: