java - How to deserialization of a class having final fields using kryo -
i have class a.
public class { public final int a; public a(int a) { this.a = a; } public int geta() { return a; } }
now when want use kryo ser/deser needs no-arg constructor unlike default implementation of java serialization needs no argument constructor of parent class non-serializable.
how can serialize/deserialize class using kryo has final members, having final members in class can't define no-arg constructor
Comments
Post a Comment