Skip to content

Calling JodaDateSerializerBase#isEmpty results in a StackOverflowError #51

@clamothe

Description

@clamothe

JodaDateSerializerBase#isEmpty(T value) calls JsonSerializer#isEmpty(null, value) which calls #isEmpty(value) again, resulting in a StackOverflowError.

jackson-databind calls isEmpty when serializing various values if the object mapper is configured with mapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY);.

For example, the serialization of a bean with a non-null field value results in a JsonMappingException wrapping the StackOverflowError.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions