I have an immutable object of class
class A {
public A(B b) {
this.a = b.c;
}
@Tag(1)
final int a;
}
How to add field into class with backward binary deserialization compatibility using Protostuff without writing custom deserializers if it possible?
Always append new fields in your class rather than insert them in the middle of the fields.
refer to official document