title: Java - Modifying serialVersionUID of binary serialized object
body: <p>A few months back I serialized a java.io.Serializable object into a file.  Now I need to read the contents, but since then the serialVersionUID has changed, and now I'm getting a "class incompatible" error.  I know for a fact that none of the data members have changed, so the only barrier is the serialVersionUID check.</p>
  
  <p>Is there a way to either disable the check or to modify the serialVersionUID in the binary file?</p>
  
  <p>CLARIFICATION</p>
  
  <p>This question is assuming that I can't edit the source.  Is there a way I can hack the .class file or perhaps hack the serialized object file (use a hex editor and change a value at some certain offset)?</p>