Bryce McKinlay <[EMAIL PROTECTED]> writes:
> Dalibor Topic wrote:
>
> >--- classpath/java/io/Serializable.java Sat Nov 17 15:00:13 2001
> >+++ patched/java/io/Serializable.java Sat Nov 17 16:04:01 2001
> >@@ -40,6 +40,7 @@
> > */
> > public interface Serializable
> > {
> >+ static final long serialVersionUID = 1196656838076753133L;
> > } // interface Serializable
> >
>
> This is redundant. An explicit serialVersionUID is only required when a
> classes implementation may be different from the JDK version (different
> private fields, for example), or where a class has evolved over time and
> needs to be backward-compatible with serialized instances from the older
> versions.
The Jikes developer discussion list recently had a small thread about
this and at least according to my understanding they think the
specification is incomplete such that it cannot be implemented
correctly by a compiler to exactly match Sun's compiler. Therefore
when Classpath is compiled with Jikes it is incompatible with any Sun
VM. I wish Eric Blake could comment further to explain to us a bit
more if I've misrepresented in some way.
Brian
--
Brian Jones <[EMAIL PROTECTED]>
_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath