BeanUtils.isSimpleValueType() returns false for enums overriding a method [SPR-16278] #20825
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Eetu Huisman opened SPR-16278 and commented
BeanUtils.isSimpleValueType()
usesClass.isEnum()
to determine whether a type is anenum
.Class.isEnum()
, however, returnsfalse
for certainenum
values, namely ones overriding a method in their superclass. UsingEnum.class.isAssignableFrom()
instead would make the behavior more predictable.Issue Links:
Referenced from: commits d3e0f4d, 6f6ff33
Backported to: 4.3.14
The text was updated successfully, but these errors were encountered: