Merry Xmas

The serializable class XXXX does not declare a static final serialVersionUID field of type long.

When you got error
"The serializable class XXXX does not declare a static final serialVersionUID field of type long."

try to ...
1. add serialVersionID field into the class.
private static final long serialVersionUID = 8526412295622776555L;

or

2. ignore the warning generated from java by open this on eclipse ...
Window -> Preferences -> Java -> Compiler -> Errors/Warnings
and select "ignore" on "Serializable Class without serialVersionUID".

Custom Search