Closed
Description
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:
- Allow to inject enum with package visibility [SPR-16284] #20831 Allow to inject enum with package visibility
Referenced from: commits d3e0f4d, 6f6ff33
Backported to: 4.3.14