Eclipse issues warnings when a serialVersionUID
is missing.
(当缺少serialVersionUID
时,Eclipse会发出警告。)
The serializable class Foo does not declare a static final serialVersionUID field of type long
(可序列化的类Foo没有声明类型为long的静态最终serialVersionUID字段)
What is serialVersionUID
and why is it important?
(什么是serialVersionUID
,为什么重要?)
Please show an example where missing serialVersionUID
will cause a problem. (请显示一个示例,其中缺少serialVersionUID
会导致问题。)
ask by ashokgelal translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…