serialization - serialVersionUID issue Eclipse -


i downloaded eclipse , when i'm getting warning/error in source files.

i receiving warning eclipse: serializable class not declare static final serialversionuid.

how should deal issue. complies fine in terminal.

every class implementing interface java.io.serializable should explicitly declare static final field named serialversionuid of type long. used during deserialization check whether client , server using same version of class.

see javadoc of java.io.serializable further details.

eclipse jdt offers compiler check kind of potential coding problem. can configure compiler warnings , errors in eclipse preferences (java-compiler-errors/warnings, section potential programming problems).


Comments