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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -