Closed
Description
When JavaTimeFeature.ONE_BASED_MONTHS
is in effect, I expect to convert strings "1"
to Month.JANUARY
... "12"
to Month.DECEMBER
. For values 1-11 it works, but "12"
raises error.
The cause is that com.fasterxml.jackson.datatype.jsr310.deser.OneBasedMonthDeserializer
first invokes the original, 0-based deserializer and then it tweaks its output with zeroBaseMonth.minus(1)
. The original deserializer can handle values "0"
to "11"
, but "12"
is obviously out of range.
Metadata
Metadata
Assignees
Labels
No labels