Help coderanch get a
new server
by contributing to the fundraiser
  • 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
What a show! What atmosphere! What fun! What a tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic