• Post Reply Bookmark Topic Watch Topic
  • New Topic

Serial Version ID

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using JBoss Eclipse IDE 1.6

CODE :


at my class declation it says "The serializable class Controller does not declare a static final SerialVersionID field of type long"

What does that mean ?? what is the use/benifit of declaring serial version id ???
 
Anupam Sinha
Ranch Hand
Posts: 1090
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Googling found this out.It is required for serialization.
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By default, Eclipse encourages you to provide a serial UID for all serializable classes as this improves usage of serializable classes in the long run.

You can turn this warning off, or even make it an error if you like.

Moving to the IDE forum, not a servlet question.
 
Periakaruppan Thiagarajan
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have just used the same code but i am not getting any errors? Is is somthing to do with jdk version?

Thanks,
PK
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!