Skip to content

Commit

Permalink
Fixed #351
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jul 25, 2019
1 parent 9afb504 commit af615b6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions release-notes/CREDITS-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ [email protected]:

* Reported, contributed fix for #336: WRITE_BIGDECIMAL_AS_PLAIN Not Used When Writing Pretty
(2.10.0)

Rohit Narayanan (rohitnarayanan@github)

* Reported #351: XmlBeanSerializer serializes AnyGetters field even with FilterExceptFilter
(2.10.0)
5 changes: 5 additions & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ Project: jackson-dataformat-xml
= Releases
------------------------------------------------------------------------

2.10.0.pr2 (not yet released)

#351: XmlBeanSerializer serializes AnyGetters field even with FilterExceptFilter
(reported by Rohit N)

2.10.0.pr1 (19-Jul-2019)

#336: WRITE_BIGDECIMAL_AS_PLAIN Not Used When Writing Pretty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ protected void serializeFieldsFiltered(Object bean, JsonGenerator gen0,
// For [#117]: not a clean fix, but with @JsonTypeInfo, we'll end up
// with accidental attributes otherwise
xgen.setNextIsAttribute(false);
_anyGetterWriter.getAndSerialize(bean, xgen, provider);
// 24-Jul-2019, tatu: Fixed for [dataformat-xml#351]
_anyGetterWriter.getAndFilter(bean, xgen, provider, filter);
}
} catch (Exception e) {
String name = (i == props.length) ? "[anySetter]" : props[i].getName();
Expand Down

0 comments on commit af615b6

Please sign in to comment.