A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Spring in Action
this week in the
Serialization - serialVersionUID
Joined: Jun 14, 2010
Nov 18, 2012 08:06:48
The serializable class Box does not declare a static final serialVersionUID field of type long..
For which classes is the above warning messages shown?
Is it just for classes which implement Serializable?
Joined: Sep 04, 2012
Nov 18, 2012 08:25:14
well to me it says class Box? I assume didn't specify a long when declaring and initializing serialVersionUID?
Joined: Mar 07, 2012
Nov 18, 2012 08:57:13
Refer to the description of a Serializable interface
If your class Box does not implement directly a serializable interface then probably it extends from a class which is serializable.
Joined: Oct 13, 2005
Nov 18, 2012 11:23:58
This recent thread
might help, too.
subject: Serialization - serialVersionUID
Serialization - different JVM version ?
what is the use of the private static long serialVersionUID variable ?
few Qs on serialVersionUID
What is "serialVersionUID"
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014