• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

action does not declare serialversionuid warning

 
anand kumarblr
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when Action extends Action Support i get a warning action does not declare serialversionuid.
Please excuse my ignorance if this was basic questions...

1) what is advantage of declaring serialversionuid in action class?

2) when does the action class gets serialized.Even in Clustered Environment i don't see action needs serialization.
Please tell any scenario where action needs to be serialized.?

3) If my action does not get serialized why do i need to add unnecessary code(declare serialversionuid) to my action making it Big.?

4) I assume serialversionuid makes sense only when the action gets serialized.is this right?

I will be really grateful if someone shares your ideas.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does a single line of code really make your action appreciably bigger?

You can always turn off the warning with an annotation (also a single line).
 
anand kumarblr
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually i meant if thats really required?

Because i really didnt get when action class gets serialized.
and i am thinking adding that line makes sense only if the action gets serialized.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic