Title: RE: [Wicket-develop] serialVersionID


Christopher Turner wrote:

As far as I am aware there is a requirement that all machines in a cluster are running exactly the same code on the same server version under the same JVM version (you'd be pretty foolish to try to do otherwise). Therefore I can't see any reason to require the serialVersionID functionality in order to support clustering.


The same JVM is not really nessesary i think. It is more a compiler question that generates a bit different class then the other. And because of that the jvm is generating another serialver.
i think the generation of the serialversion for the same class over multiply vm's is pretty equal:

http://java.sun.com/j2se/1.4.2/docs/guide/serialization/spec/class.html

The getSerialVersionUID method returns the serialVersionUID of this class. Refer to Section 4.6 "Stream Unique Identifiers.” If not specified by the class, the value returned is a hash computed from the class’s name, interfaces, methods, and fields using the Secure Hash Algorithm (SHA) as defined by the National Institute of Standards.

The problem is that the layout of the classs file must be the same and this does differ a lot what kind of javac/eclipse you use.

johan


Reply via email to