This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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