aspose file tools*
The moose likes I/O and Streams and the fly likes What are factors that causes serialVersionUID changed .... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "What are factors that causes serialVersionUID changed ...." Watch "What are factors that causes serialVersionUID changed ...." New topic
Author

What are factors that causes serialVersionUID changed ....

Maneessh saxena
Ranch Hand

Joined: Oct 03, 2006
Posts: 125
hi great Ranchers,

I wanna know that what are the factors that causes serialVersionUID of a class changed. I am really confused about this.

Thanks & Regards


SCJP 1.4, SCWCD 1.5
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8927
    
    9

There are no "factors". The serialVersionUID identifies a particular version of a class. Change the class definition and the serialVersionUID changes.
Ensure Proper Version Control For Serialized Objects


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What are factors that causes serialVersionUID changed ....