-
Notifications
You must be signed in to change notification settings - Fork 677
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
KotlinBeanInfoFactory
throws an exception when creating bean info for enums
#2990
Comments
It makes sense for us to backoff for enums. We do not want to determine properties for enums as we treat enums as values. |
We now no longer contribute properties for enum types. Closes #2990
That's fixed now. Do you want to give the latest 3.2.1 snapshots ( |
Hi @mp911de thanks for the quick fix of the problem. I gave |
Thanks for checking out the fix. It's going to be available with the next service release mid-December, see https://calendar.spring.io/. |
Hi,
when upgrading my project from Spring Boot 3.1.x to 3.2.0 (and thus from Spring Beans 6.0.x / Spring Data Commons 3.1.x), I get an exception during runtime when the
KotlinBeanInfoFactory
tries to return the bean info for a Kotlin enum type. The following code can be used for reproducing the problem:This produces the following exception:
This problem is potentially similar to #2964
In the above test, I'm not sure which other properties should be asserted (in addition to
someProperty
). Checking with previous behavior in Spring Beans 6.0.x (from whichBeanUtils
is coming from) / Spring Data Commons 3.1.x, the following properties had previously been detected for theSomeEnum
class:class
,declaringClass
,entries
,someProperty
,name
,ordinal
.The text was updated successfully, but these errors were encountered: