• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

eclipse error

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am new to Eclipse. How do I get this warning to go away? I am writing an exception that extends Exception

The serializable class DuplicateKeyException does not declare a static final serialVersionUID field of type long
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jay,

Eclipse also shows You how to repair suchproblem. Open Your DuplicateKeyException class. In the left editor column, before line numbering, You will see yellow bulb with warning symbol. Click on it and Eclipse offer You how it can be repaired.


If You're not interested to see warnings about this kind of problems, it is possible to turn this mechanism off:

1. from menu choose Window -> Preferences
2. in preferences window, in left tree choose Java -> Compiler -> Errors/Warnings
3. on the right side choose PotentialProgrammingProblems -> Serializable class without serialVersionUID and change Warning to Ignore


Best Regards,
KArol Muszynski
[ November 05, 2005: Message edited by: KArol Muszynski ]
 
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Another alternative: Use the Serial Version tool to create the value, then add the value to your class.
 
reply
    Bookmark Topic Watch Topic
  • New Topic