Skip to content

Commit

Permalink
Fix #878
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jul 29, 2015
1 parent 726b6e0 commit 4312a24
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions release-notes/CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -261,4 +261,8 @@ Kamil Benedykciński (Kamil-Benedykcinski@github)
in `JsonMappingException`
(2.5.4)

Chi Kim (chikim79@github)
* Reported #878: serializeWithType on BeanSerializer does not setCurrentValue
(2.5.5 / 2.6.1)


2 changes: 2 additions & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Project: jackson-databind
#844: Using JsonCreator still causes invalid path references in JsonMappingException
(reported by Ian B)
#852: Accept scientific number notation for quoted numbers too
#878: serializeWithType on BeanSerializer does not setCurrentValue
(reported by Chi K, chikim79@github)

2.5.4 (09-Jun-2015)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,8 @@ public void serializeWithType(Object bean, JsonGenerator gen,
} else {
typeSer.writeCustomTypePrefixForObject(bean, gen, typeStr);
}
// [databind#631]: Assign current value, to be accessible by custom serializers
gen.setCurrentValue(bean);
if (_propertyFilterId != null) {
serializeFieldsFiltered(bean, gen, provider);
} else {
Expand Down

0 comments on commit 4312a24

Please sign in to comment.