classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH]


From: Brian Jones
Subject: Re: [PATCH]
Date: 18 Nov 2001 23:01:11 -0500
User-agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7

Bryce McKinlay <address@hidden> 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 <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]