-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Is your feature request related to a problem? Please describe.
The BeanDeserializerModifier does not currently implement Serializable.
jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerModifier.java
Line 48 in 5be890c
| public abstract class BeanDeserializerModifier |
On the other hand, this class is used as a field in SimpleModule which implements Serializable.
This means that if a simple implementation of BeanDeserializerModifier is used in a SimpleModule, the JDK serialization may cause unintended errors.
jackson-databind/src/main/java/com/fasterxml/jackson/databind/module/SimpleModule.java
Line 94 in 5be890c
| protected BeanDeserializerModifier _deserializerModifier = null; |
Describe the solution you'd like
Either have BeanDeserializerModifier implement Serializable or provide a base class like SimpleBeanDeserializerModifier that implements Serializable as well as other supporting classes.
Usage example
No response
Additional context
No response