Skip to content
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

BeanUtils.isSimpleValueType() returns false for enums overriding a method [SPR-16278] #20825

spring-issuemaster opened this issue Dec 7, 2017 · 0 comments


None yet
2 participants
Copy link

commented Dec 7, 2017

Eetu Huisman opened SPR-16278 and commented

BeanUtils.isSimpleValueType() uses Class.isEnum() to determine whether a type is an enum. Class.isEnum(), however, returns false for certain enum values, namely ones overriding a method in their superclass. Using Enum.class.isAssignableFrom() instead would make the behavior more predictable.

Issue Links:

  • #20831 Allow to inject enum with package visibility

Referenced from: commits d3e0f4d, 6f6ff33

Backported to: 4.3.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.