title: How can I deserialize the object, if it was moved to another package or renamed?
body: <p>Consider the following situation:</p>
  
  <p>There is a serialization file, created by the older version of the application. Unfortunately, the package has changed for the class, that has been serialized. And now I need to load the information from this file into the same class, but located in different package. This class has <code>serialVersionUID</code> defined and has not changed (i.e. is compatible).</p>
  
  <p>Question: Is it possible to load the new class instances from this file using any tricks (except trivial copying the class into old package and then using the deserialization wrapper logic)? It is possible to use <a href="https://stackoverflow.com/questions/1168348/java-serialization-readobject-vs-readresolve"><code>readResolve()</code></a> to recover from moving/renaming the class? If not, please, explain why.</p>