serialization - Java Serializable object contains non-Serializable fields -
i use findbugs in eclipse, , there tons of "troubling" warnings.
here sketch code:
public class serializableobject implements serializable { private nonserializableobject nso; .. setter, getter, else }
can cause troubles? or can ignore it? or should serialization everywhere touches?
it in jsf web project.
you have mark them transient
when declare field transient ignored during serialization , deserialization process. keep in mind when deserialize object transient field field's value it's default (usually null.)
Comments
Post a Comment