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

Automatically register @JsonIdentityInfo generator and resolver in Jackson #15506

Conversation

Christopher-Chianelli
Copy link
Contributor

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.

@Christopher-Chianelli
Copy link
Contributor Author

@geoand ^

@geoand
Copy link
Contributor

geoand commented Mar 5, 2021

Look, good thanks!

Let's improve the comment and it should be good to go

@geoand
Copy link
Contributor

geoand commented Mar 5, 2021

Great! Please squash the commits and the PR is going to go

@Christopher-Chianelli
Copy link
Contributor Author

I am waiting for checks; I'll squash once checks (on the previous commit) pass

@geoand
Copy link
Contributor

geoand commented Mar 5, 2021

That doesn't do CI any favors, but as you wish - it's not a problem

@Christopher-Chianelli Christopher-Chianelli force-pushed the register-json-identity-generator-and-resolver branch from 4483695 to e52ed3c Compare March 5, 2021 19:58
@Christopher-Chianelli
Copy link
Contributor Author

@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)

@geoand
Copy link
Contributor

geoand commented Mar 5, 2021

Running the tests of the project from the IDE is always problematic for me, so I just resort to running from Maven

This was referenced Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/waiting-for-ci Ready to merge when CI successfully finishes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants