Change in behavior in Jackson Databind 2.19.x #5218
erizzo-cfa
started this conversation in
General
Replies: 2 comments 6 replies
-
This example seems to use Lombok -- we can't use it as-is. But could you de-Lombok it? That would show actual annotations and methods. |
Beta Was this translation helpful? Give feedback.
6 replies
-
Note: created #5219 for apparent regression. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems that Jackson 2.19.x has changed the way
@JsonProperty
is treated when applied to enums. Here's a simple test to demonstrate:With jackson-databind 2.18.4, the test
withBlank()
fails andwithEnumName()
passes.With 2.19.0/2.19.1, it's the other way around,
withEnumName()
fails andwithBlank()
passes.Was this change intentional? According to the Javadoc of
@JsonProperty
, it seems like the behavior of 2.18.4 was actually incorrect, but I didn't see any mention of a bug like that in the release notes.Beta Was this translation helpful? Give feedback.
All reactions