File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Serialization - serialVersionUID" Watch "Serialization - serialVersionUID" New topic

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

Joined: Mar 07, 2012
Posts: 9

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.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45305
This recent thread might help, too.
Don't get me started about those stupid light bulbs.
subject: Serialization - serialVersionUID
It's not a secret anymore!