Skip to content

Commit c5a5f53

Browse files
committed
Fix #676
1 parent 7577766 commit c5a5f53

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

release-notes/VERSION

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ Project: jackson-databind
44
=== Releases ===
55
------------------------------------------------------------------------
66

7+
2.4.7 (not yet released)
8+
9+
#676: Deserialization of class with generic collection inside depends on
10+
how is was deserialized first time
11+
712
2.4.6 (23-Apr-2015)
813

914
#735: (complete fix) @JsonDeserialize on Map with contentUsing custom deserializer overwrites default behavior

src/main/java/com/fasterxml/jackson/databind/deser/DeserializerCache.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,9 @@ private JavaType modifyTypeByAnnotation(DeserializationContext ctxt,
557557
private boolean _hasCustomValueHandler(JavaType t) {
558558
if (t.isContainerType()) {
559559
JavaType ct = t.getContentType();
560-
return (ct != null) && (ct.getValueHandler() != null);
560+
if (ct != null) {
561+
return (ct.getValueHandler() != null) || (ct.getTypeHandler() != null);
562+
}
561563
}
562564
return false;
563565
}

0 commit comments

Comments
 (0)