Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Compiler Warning when you implement Serializable interface

 
Harikrishna Gorrepati
Ranch Hand
Posts: 423
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, why do I get compiler warning when I implement Serializable interface "The serializable class <OUR_CLASS_NAME> does not declare a static final serialVersionUID field of type long"..Please advice what is the meaning of this?
 
Chad Michaels
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you give a code example?
 
Harikrishna Gorrepati
Ranch Hand
Posts: 423
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Chad Michaels wrote:Can you give a code example?
Sure chad. Here you go.
 
pete stein
Bartender
Posts: 1561
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Harikrishna Gorrepati wrote:
Chad Michaels wrote:Can you give a code example?
Sure chad. Here you go.
Compiler warning : The serializable class P626_Generics_classType4_Ask does not declare a static final serialVersionUID field of type long


Have you read the API for the Serializable interface? I think that this issue is well discussed there.

Luck!
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic