-
Notifications
You must be signed in to change notification settings - Fork 175
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
ReflectionCache not Serializable #295
Comments
Yes I would think so. Someone would need to make the change, test serializability (databind has some tests, just initialize mapper with module, serialize + deserialize back, use for reading/writing [simple cases ok]), and provide a patch. With 3.x things will change a bit to make things much easier so that modules do not usually need to do anything to keep them serializable (mapper serializes modules and NOT things modules register; problem with 2.x is that mappers are serialized with full state, 3.0 only serializes configuration). |
@elgbar Is this still a necessary issue? |
I think the problem is that even if Builder is serializable, there are use cases where If there is need for A reasonable example of how to do that can be found from protected Object readResolve() {
return new LRUMap<K,V>(_initialEntries, _maxEntries);
} handles reconstruction (in this case retaining configuration settings; that might not be needed with |
The application I was wringing at the time is now EOL, so I don't personally need it now. The solution I came up with was including a file in an Uber jar with the absolute classpath to an object instance which I used to do serialisation stuff with. But as a feature I still see it's usage |
I agree: an |
As far as I understood it, it looked like simply inheriting |
It will be released in 2.15. |
@k163377 One follow-up thing: could you please merge this from 2.15 into Some things are due to renaming:
and then there is Java package name change from This merge should be done after merging every new feature in 2.15. Similarly, if a fix goes in an earlier branch (backport), like 2.14, it needs to be merged to all later branches (to 2.15, then |
@cowtowncoder Created #636 |
Thank you @k163377 -- I merged it; I know there are pre-existing failures in |
Done in #636 |
Ref issue #245, it it possible to make ReflectionCache Serializable?
Originally posted by @cowtowncoder in #245 (comment)
I do need to pass a configured instance of an ObjectMapper between applications.
If this is infeasible, any other suggestions for how to deal with configuring ObjectMapper cross application?
The text was updated successfully, but these errors were encountered: