Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling JodaDateSerializerBase#isEmpty results in a StackOverflowError #51

Closed
clamothe opened this issue Jan 12, 2015 · 1 comment
Closed
Milestone

Comments

@clamothe
Copy link
Contributor

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.

clamothe added a commit to clamothe/jackson-datatype-joda that referenced this issue Jan 12, 2015
clamothe added a commit to clamothe/jackson-datatype-joda that referenced this issue Jan 12, 2015
@cowtowncoder
Copy link
Member

Ah, good catch, thanks!

cowtowncoder added a commit that referenced this issue Jan 13, 2015
@cowtowncoder cowtowncoder added this to the 2.5.0 milestone Jan 13, 2015
cowtowncoder added a commit that referenced this issue Jan 13, 2015
@cowtowncoder cowtowncoder modified the milestones: 2.5.1, 2.5.0 Jan 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants