I am trying to serialize a non-serializable object in Java. A standard solution is to implement writeObject and readObject methods for that class.
In my case, though, the the class of the object to be serialized is in a JAR file, so I cannot change it to implement the readObject and writeObject methods.
Also, the class in the JAR is a final class.
Is there any way to serialize an object in this case?