I would very much appreciate it if someone could give me their thoughts on what they think may be causing the following problem. Basically I have the following structure and am getting a local class incompatible error on the interface!
Public interface ExecutionActivity extends Serializable
Public class ExecutionActivityImpl extends AbstractObject implements ExecutionActivity �
ExecutionActivityImpl has the serialVersionUID set as follows
private static final long serialVersionUID = 1L;
I persisted objects some time back and have now changed both the interface ExecutionActivity and ExecutionActivityImpl and am getting a � �ExecutionActivity (this is an interface!); local class incompatible error : serialVersionUID = 6901�., local class serialVersionUID = 123��
I have used serialver and have confirmed that the serialVersionUID for which I am getting an error is for the Interface, is this correct? My understanding was that the serialVersionUID only needed to be set on the class.
I added the serialVersionUID to the interface and that seemed to work however I would like to confirm that this is normal behaviour. One thing to mention is that the objects were persisted using j2se 1.4.0 and read back using 1.4.2