• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serialization - serialVersionUID

 
Rajiv Rai
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well to me it says class Box? I assume didn't specify a long when declaring and initializing serialVersionUID?
 
Tomek Ziolkowski
Greenhorn
Posts: 9
Eclipse IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 49793
69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This recent thread might help, too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic