Skip to content

Commit

Permalink
Fix #2576
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Dec 20, 2019
1 parent 98e1c1b commit 270498c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ Project: jackson-databind
(reported by Greg A)
#2567: Incorrect target type for arrays when providing nulls and nulls are disabled
(reported by João G)
#2576: Fail to serialize `Enum` instance which includes a method override
as POJO (shape = Shape.OBJECT)
(reported by ylhuang-veeva@github)

2.10.1 (09-Nov-2019)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ public JsonSerializer<Object> findBeanOrAddOnSerializer(SerializerProvider prov,
// First things first: we know some types are not beans...
if (!isPotentialBeanType(type.getRawClass())) {
// 03-Aug-2012, tatu: Except we do need to allow serializers for Enums,
// as per [databind#24]
if (!type.isEnumType()) {
// as per [databind#24], [databind#2576]
if (!ClassUtil.isEnumType(type.getRawClass())) {
return null;
}
}
Expand Down

0 comments on commit 270498c

Please sign in to comment.