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 -

Python Tornado package error when running server -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -