wood burning stoves 2.0*
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
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: 38487
    
  23
This recent thread might help, too.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Serialization - serialVersionUID