public class MyObj implements Serializable {
private transient Map<String, Object> myHash = new HashMap<String, Object>();
...
}
I find this question
Deserialize a transient member of an object to a non-null default in Java
but use standard deserialize in java, it works. but it seems not invoke readObject
in kryo.