Adrian Bartholomew wrote:
>i used x and y just to portray that they were different values.
>y is the value of my hard coded value if I implemented static int
>serialVersionUID = y, an arbitrary value if I did not.
Understood. I asked for the exact values because I wanted to see the
actual message for when you said you hard-wired a value, and what the
reported values were vs. what value you had in your source. I guess I
wasn't as clear as I should have been.
However, I think you provided some of what I wanted to know anyway:
serialVersionUID must be a long, not an int, and final.
Search for 'serialVersionUID' on this page:
<http://java.sun.com/j2se/1.5.0/docs/api/java/io/Serializable.html>
In particular, note:
"... must be static, final, and of type long ..."
Also make sure both the client and server jars are using the same class-file.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden