-
Notifications
You must be signed in to change notification settings - Fork 38.4k
Add support for Kotlin inline/value classes as beans #31372
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
Reproducer as a test (failing case is |
It looks like I can reproduce on both 6.0 and 6.1, so I don't think that's a regression, while your description seems to imply it unless I misunderstood. Could you please clarify that point? |
Hi @sdeleuze, Thank you for looking into this. I meant this as a feature request, and did not mean to imply it was a regression. Better wording on my part might have been, "...but not as direct Kotlin value classes in 6.0.12 or 6.1.0-M5." |
I have mixed feelings about introducing Kotlin specific logic for that use case because conceptually with Could you please share more details about your use case, and share your feedback after reading the Keep design notes? |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
I seem to be able to disambiguate
@Beans
via suppliers of Kotlin inline/value classes, even with Spring 6.0, but not as direct Kotlin value classes as of 6.1.0-M5.With:
This works:
But this doesn't work:
With the latter I get:
Full reproducer in a project:
https://github.com/sdkotlin/sd-kotlin-spring-talks/blob/8f1bae8217f2b876d51843a12fe118eb9fd7bc12/subprojects/app/src/main/kotlin/org/sdkotlin/springvalueclassdemo/direct/KotlinValueClassApp.kt
This may relate to #28638.
The text was updated successfully, but these errors were encountered: