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

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -