Skip to content

Commit

Permalink
Fix #676
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed May 8, 2015
1 parent 7577766 commit c5a5f53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Project: jackson-databind
=== Releases ===
------------------------------------------------------------------------

2.4.7 (not yet released)

#676: Deserialization of class with generic collection inside depends on
how is was deserialized first time

2.4.6 (23-Apr-2015)

#735: (complete fix) @JsonDeserialize on Map with contentUsing custom deserializer overwrites default behavior
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,9 @@ private JavaType modifyTypeByAnnotation(DeserializationContext ctxt,
private boolean _hasCustomValueHandler(JavaType t) {
if (t.isContainerType()) {
JavaType ct = t.getContentType();
return (ct != null) && (ct.getValueHandler() != null);
if (ct != null) {
return (ct.getValueHandler() != null) || (ct.getTypeHandler() != null);
}
}
return false;
}
Expand Down

0 comments on commit c5a5f53

Please sign in to comment.