#459 Check for Serial Version UID declaration

open
nobody
Check (274)
5
2012-10-10
2007-05-14
John Rutter
No

Check that a classes implementing java.io.Serializable also declare an explicit value for SerialVersionUID.

Due to inconsistencies and incompabitibilies between JDK releases and vendors, the default generation of SerialVersionUID is broken.

A check that could identify classes that implement the java.io.Serializable interface, but that do not also haev a static final declaration of the serialVersionUID value would allow this risk to be identified.

Discussion