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

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -