Suppose here is my class :
class B implements Serializable {
private static final long serialVersionUID = -5186261241138469827L; // what algo is used to generate this
..........
}
What algorithm eclipse uses to generate serialVersionUID = -5186261241138469827L
?
Eclipse implements the relevant Java spec to compute Serialization ID.
In Eclipse, this is implemented by calculateSerialVersionId method in org.eclipse.jdt.internal.ui.text.correction.SerialVersionHashOperation class.
Java Object Serialization Specification Docs ,given that algo