-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Make TypeIdResolvers serializable for Jackson 2.15 #4304
Conversation
Should we really backport this into 2.15? |
import static com.fasterxml.jackson.databind.BaseMapTest.newJsonMapper; | ||
|
||
// [databind#4303] | ||
class SerializablePolymorphicIdReaders4303Test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of new test class, let's instead add into com.fasterxml.jackson.databind.SerializeUsingJDKTest
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there class named SerializeUsingJDKTest
? couldn't find any
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May have been renamed, let me check what it was named in 2.15.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok yes, TestJDKSerialization
. Renamed later on to be bit more descriptive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found it, done via baf21e1, thanks!
Ok, I guess it's fine to merge this in 2.15, after combining test cases into existing |
You think not, @cowtowncoder ? I thought okay because "some of" IdResolvers can already be serialized 🤔 |
Sorry. Should have thought it through... yes, it's fine esp. if some are other JDK serializable. Apologies for noise. |
resolves #4303
blocks #4305