serialVersionUID field warning issue
Hi all,
i'm using the jdk1.5.0 compiler in my java developement under Eclipse platform.
However i keep getting a strange warning on approximately each class in my applications:
The serializable class "MyClass" does not declare a static final serialVersionUID field of type long.
why i'm i getting this warning and what is it about ?
thanks.
thanks for the two interesting replies : that solved the problem.
I need your further advice about warning issues :
i wrote an application in which i'm implementing dynamic java compilation using eclipse jdt package..
for warning settings i'm using :
String warningSetting = new String("allDeprecation,"
+ "assertIdentifier," + "charConcat,"
+ "conditionAssign," + "constructorName," + "deprecation,"
+ "fieldHiding," + "finalBound,"
+ "finally," + "indirectStatic," + "intfNonInherited,"
+ "localHiding," + "maskedCatchBlocks,"
+ "noEffectAssign," + "pkgDefaultMethod,"
+ "semicolon," + "specialParamHiding," + "staticReceiver,"
+ "syntheticAccess,"
+ "unnecessaryElse," + "uselessTypeCheck," + "unsafe,"
+ "unusedImport,"
+ "unusedThrown");
however the client is complainig that the warning level is too high...
what are the warnings from above list that are not very critical so i can remove them to reduce warning level ?
thank you.