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

MonthDeserTest: Test deserializing java.time.Month #1

Open
wants to merge 1 commit into
base: 2.16
Choose a base branch
from

Conversation

kreiger
Copy link
Owner

@kreiger kreiger commented May 3, 2023

I found an issue with deserializing java.time.Month.

Since it's an enum, 0 deserializes as Month.JANUARY, 1 as Month.FEBRUARY, 11 as Month.DECEMBER, and so on.

This PR provides only a failing test that proves this.

@kreiger kreiger force-pushed the month-deserialization-test branch from 889117d to d4519aa Compare May 3, 2023 21:46
@cowtowncoder
Copy link

As per my notes on FasterXML#274 the problem wrt fix is that change would be backwards-incompatible and as such needs to be an opt-in feature (for DateTimeModule... like JavaTimeFeature)

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

Successfully merging this pull request may close these issues.

2 participants