Re: SerialVersionUID missmatches

2006-03-27 Thread Andrew Haley
Tom Tromey writes: Andrew == Andrew Haley [EMAIL PROTECTED] writes: The question is what the fix is? In every service release of SUNs JDK they change some of the serialVersionUIDs. Whenever you run japi locally against another service release of SUN you will get other differences.

Re: SerialVersionUID missmatches

2006-03-27 Thread Michael Koch
On Mon, Mar 27, 2006 at 11:18:27AM +0100, Andrew Haley wrote: Tom Tromey writes: Andrew == Andrew Haley [EMAIL PROTECTED] writes: The question is what the fix is? In every service release of SUNs JDK they change some of the serialVersionUIDs. Whenever you run japi locally

Re: SerialVersionUID missmatches

2006-03-25 Thread Andrew Haley
Tom Tromey writes: Stuart == Stuart Ballard [EMAIL PROTECTED] writes: Stuart Perhaps in the same spirit as the throws NotImplementedException Stuart hack, we could add a NotReallySerializable interface that classes Stuart whose svuids should be ignored could implement... I don't

Re: SerialVersionUID missmatches

2006-03-25 Thread Michael Koch
On Sat, Mar 25, 2006 at 10:06:15AM +, Andrew Haley wrote: Tom Tromey writes: Stuart == Stuart Ballard [EMAIL PROTECTED] writes: Stuart Perhaps in the same spirit as the throws NotImplementedException Stuart hack, we could add a NotReallySerializable interface that classes

Re: SerialVersionUID missmatches

2006-03-25 Thread Andrew Haley
Michael Koch writes: On Sat, Mar 25, 2006 at 10:06:15AM +, Andrew Haley wrote: Tom Tromey writes: Stuart == Stuart Ballard [EMAIL PROTECTED] writes: Stuart Perhaps in the same spirit as the throws NotImplementedException Stuart hack, we could add a

Re: SerialVersionUID missmatches

2006-03-25 Thread Tom Tromey
Andrew == Andrew Haley [EMAIL PROTECTED] writes: The question is what the fix is? In every service release of SUNs JDK they change some of the serialVersionUIDs. Whenever you run japi locally against another service release of SUN you will get other differences. Yeah. javax.swing is a

Re: SerialVersionUID missmatches

2006-03-24 Thread Mark Wielaard
Hi Carsten, On Fri, 2006-03-24 at 18:44 +0100, Carsten Neumann wrote: I'm new around here and was looking for a spot where I could make a contribution. Browsing the japi test results I noticed that a lot of SerialVersionUID missmatches are reported. Fixing these appears to be quite simple,

Re: SerialVersionUID missmatches

2006-03-24 Thread Tom Tromey
Carsten == Carsten Neumann [EMAIL PROTECTED] writes: Carsten I'm new around here and was looking for a spot where I could make a Carsten contribution. Browsing the japi test results I noticed that a lot of Carsten SerialVersionUID missmatches are reported. Fixing these appears to be Carsten

Re: SerialVersionUID missmatches

2006-03-24 Thread Stuart Ballard
On 24 Mar 2006 12:45:27 -0700, Tom Tromey [EMAIL PROTECTED] wrote: I don't really know what we should do long term. Maybe fixing these to be compatible is best. However it isn't sufficient to add the serialVersionUID, you need to also make sure that the serialized forms are the same.

Re: SerialVersionUID missmatches

2006-03-24 Thread Tom Tromey
Stuart == Stuart Ballard [EMAIL PROTECTED] writes: Stuart Perhaps in the same spirit as the throws NotImplementedException Stuart hack, we could add a NotReallySerializable interface that classes Stuart whose svuids should be ignored could implement... I don't think we could do that, as a new

Re: serialVersionUID problem

2006-01-19 Thread Andrew Haley
hultul writes: Hi, all~ I did some tests of java.io.Serializable's serialVersionUID using cp-tools. All the VM's used in tests were from Debian testing release. As a result, kaffe, jamvm, sablevm, and gij showed different results from Sun's java, where gij in GCC-3.4.3 not in

Re: serialVersionUID problem

2006-01-19 Thread Stuart Ballard
Serializable is an interface, anyway, not a class. Interfaces can never be serializable and so it makes absolutely no difference what serialver returns for them. I'd actually suggest it would be nice if serialver gave a warning or an error in that case! Yes, I know that Sun sometimes put

Re: serialVersionUID (again)

2002-10-11 Thread Eric Blake
Your summary seemed good to me. Mark Wielaard wrote: What I don't understand is why it is so hard to specify the actual accessor methods. Does anybody know why they were never clearly specified? Partly because it was a hack added in JDK 1.1. To maintain the most possible backward

Re: serialVersionUID

2002-09-28 Thread Brian Jones
I've added this information to the hacking document, thanks Eric. Brian Eric Blake [EMAIL PROTECTED] writes: If a class has a field (of any accessibility) named serialVersionUID of type long, that is what serialver uses. Otherwise it computes a value using some sort of hash function on the

Re: serialVersionUID

2002-09-26 Thread Giannis Georgalis
Eric Blake [EMAIL PROTECTED] writes: It is necessary for serialization, although it is usually a private field. ALL classes in classpath which implement java.io.Serializable should declare this field, and it should match the results of running Sun's serialver tool on that class; otherwise,

Re: serialVersionUID

2002-09-26 Thread Dalibor Topic
Hi Giannis, --- Giannis Georgalis [EMAIL PROTECTED] wrote: Eric Blake [EMAIL PROTECTED] writes: It is necessary for serialization, although it is usually a private field. ALL classes in classpath which implement java.io.Serializable should declare this field, and it should match the

Re: [Classpath] Re: serialVersionUID

2002-09-26 Thread C. Scott Ananian
On Thu, 26 Sep 2002, Dalibor Topic wrote: If classpath uses different implementations of java classes on different platforms the genuine serialVersionUID for the different implementations will obviously differ. I assume that Suns serialVersionUID is the same on all platforms, though;

Re: serialVersionUID

2002-09-26 Thread Eric Blake
If a class has a field (of any accessibility) named serialVersionUID of type long, that is what serialver uses. Otherwise it computes a value using some sort of hash function on the names of all method signatures in the .class file. I'm not sure whether the methods are sorted first, or what

Re: serialVersionUID

2002-09-26 Thread Brian Jones
Tom Tromey [EMAIL PROTECTED] writes: Eric == Eric Blake [EMAIL PROTECTED] writes: Eric The fact that different compilers create different synthetic Eric method signatures, such as access$0() if an inner class needs Eric access to a private member of an enclosing class, make it Eric

Re: serialVersionUID

2002-09-21 Thread Eric Blake
It is necessary for serialization, although it is usually a private field. ALL classes in classpath which implement java.io.Serializable should declare this field, and it should match the results of running Sun's serialver tool on that class; otherwise, Classpath will not be compatible for