Search code examples
javaeclipsedto

Compilation unit has been modified


I created a DTO class and implemented the java serializable class. when I created auto generated uid, the above message was give. asking to save. what does this mean?

I did an internet search but could not find a suitable answer.


Solution

  • serialVersionUID is used during serialization/de-serialization process.
    http://docs.oracle.com/javase/1.5.0/docs/api/java/io/Serializable.html