Skip to content

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.

2 participants