Skip to content

XmlBeanSerializer serialzes AnyGetters field even with FilterExceptFilter #351

@rohitnarayanan

Description

@rohitnarayanan

Version: jackson-dataformat-xml-2.9.9

When using FilterExceptFilter to serialize selected fields, XmlBeanSerializer also serializes the AnyGetter field. The problem seems to be at XmlBeanSerializerBase.serializeFieldsFiltered() line: 292, where it calls _anyGetterWriter.getAndSerialize().

On the other hand YAML/JSON serialization works fine because BeanSerializerBase.serializeFieldsFiltered() line: 775, calls _anyGetterWriter.getAndFilter()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions