Is your feature request related to a problem? Please describe.
The BeanDeserializerModifier does not currently implement Serializable.
|
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.
|
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
Is your feature request related to a problem? Please describe.
The
BeanDeserializerModifierdoes not currently implementSerializable.jackson-databind/src/main/java/com/fasterxml/jackson/databind/deser/BeanDeserializerModifier.java
Line 48 in 5be890c
On the other hand, this class is used as a field in
SimpleModulewhich implementsSerializable.This means that if a simple implementation of
BeanDeserializerModifieris used in aSimpleModule, theJDKserialization may cause unintended errors.jackson-databind/src/main/java/com/fasterxml/jackson/databind/module/SimpleModule.java
Line 94 in 5be890c
Describe the solution you'd like
Either have
BeanDeserializerModifierimplementSerializableor provide a base class likeSimpleBeanDeserializerModifierthat implementsSerializableas well as other supporting classes.Usage example
No response
Additional context
No response