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.
When
JavaTimeFeature.ONE_BASED_MONTHSis in effect, I expect to convert strings"1"toMonth.JANUARY..."12"toMonth.DECEMBER. For values 1-11 it works, but"12"raises error.The cause is that
com.fasterxml.jackson.datatype.jsr310.deser.OneBasedMonthDeserializerfirst invokes the original, 0-based deserializer and then it tweaks its output withzeroBaseMonth.minus(1). The original deserializer can handle values"0"to"11", but"12"is obviously out of range.