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

Merge forward JDK-6-compatible equals() and hashcode() implementations into JsonTypeInfo.Value of master #230

Closed
wants to merge 1 commit into from
Closed

Merge forward JDK-6-compatible equals() and hashcode() implementations into JsonTypeInfo.Value of master #230

wants to merge 1 commit into from

Conversation

JooHyukKim
Copy link
Member

@JooHyukKim JooHyukKim commented May 19, 2023

Motivation

This PR is for forwards-compatiblity with 3.0. As discussed in #229 (comment), same as title. I would like to see the implemenations to be "exactly" the same.

Background

Originated from backporting JsonTypeInfo.Value of Jackson 3.0 into Jackson 2.16 in #229. The equals() and hashcode() implementations of JsonTypeInfo.Value in Jackson 3.0 (master branch) could not be directly copied because of its usage of JDK7 util methods Objects.equals() and Objects.hashcode() util methods, so ended up using the internal Objects.hashcode() implementation.

@cowtowncoder
Copy link
Member

Thanks but 3.0 will be based on at least Java 8 and probably later 17. No point in holding back those implementations since code should not need to be changed a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants