On Tue, 2010-10-19 at 20:30 -0400, Erik Engbrecht wrote:
> I thought the purpose of @serializable was to enable proper generation
> of the serialVersionUid static final member of the class, because
> Scala doesn't have static fields.
No, that's what the @SerialVersionUID annotation (also in the scala
package) is for. You can even do this:
class Foo extends java.io.Serializable
This does what it should, namely include a serialVersionUID field on
If we're going to deprecate @serializable and introduce a trait
scala.Serializable, note that we still need @SerialVersionUID (instead
of an abstract val on scala.Serializable) because the serialVersionUID
field is *not* supposed to be inherited.