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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -