*
The moose likes Beginning Java and the fly likes Serialization - serialVersionUID Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Serialization - serialVersionUID" Watch "Serialization - serialVersionUID" New topic
Author

Serialization - serialVersionUID

Rajiv Rai
Ranch Hand

Joined: Jun 14, 2010
Posts: 57
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?
Wesleigh Pieters
Ranch Hand

Joined: Sep 04, 2012
Posts: 81
well to me it says class Box? I assume didn't specify a long when declaring and initializing serialVersionUID?
Tomek Ziolkowski
Greenhorn

Joined: Mar 07, 2012
Posts: 9

Refer to the description of a Serializable interface http://docs.oracle.com/javase/7/docs/api/java/io/Serializable.html

If your class Box does not implement directly a serializable interface then probably it extends from a class which is serializable.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38045
    
  22
This recent thread might help, too.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Serialization - serialVersionUID
 
Similar Threads
what is the use of the private static long serialVersionUID variable ?
Serialization - different JVM version ?
What is "serialVersionUID"
serializable
few Qs on serialVersionUID