-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Automatically register @JsonIdentityInfo generator and resolver in Jackson #15506
Automatically register @JsonIdentityInfo generator and resolver in Jackson #15506
Conversation
@geoand ^ |
extensions/jackson/deployment/src/main/java/io/quarkus/jackson/deployment/JacksonProcessor.java
Outdated
Show resolved
Hide resolved
Look, good thanks! Let's improve the comment and it should be good to go |
Great! Please squash the commits and the PR is going to go |
I am waiting for checks; I'll squash once checks (on the previous commit) pass |
That doesn't do CI any favors, but as you wish - it's not a problem |
4483695
to
e52ed3c
Compare
@geoand done (just wanted to make sure the test worked; IDE was giving me trouble running the tests hence why I was waiting on CI) |
Running the tests of the project from the IDE is always problematic for me, so I just resort to running from Maven |
Jackson supports entities that refer to one another (perhaps in a recursive loop) via
@JsonIdentityInfo
(where it uses an attribute to determine if two objects in json refer to the same thing). Currently, the generator and resolver of@JsonIdentityInfo
are not registered for reflective, causing an error at runtime in native mode when jackson try to deserialize an object with the annotation.This PR registers the generator and resolver of
@JsonIdentityInfo
which fixes the issue (and add an example of it to the jackson integration tests.