Hello:
I'm new to this list, so forgive me is the posting is not
appropiate to the chapter.
I'm having a problem trying to serialize a class which
basically has:
private HashMap a= new HashMap();
private HashMap b= new HashMap();
a few private int variables;
public void addtoA(Integer, Float);
public void addtoB(Integer, Float);
The constructor leaves a and b untouched, so serializing &
deserializing an 'empty' instance works fine.
When I call addtoA or addtoB, then serialize, and then try
to deserialize I get:
java.io.InvalidClassException: java.lang.Integer; Local class not
compatible: stream classdesc serialVersionUID=1360826667802527544
local class serialVersionUID=1360826667806852920
This is on the same program, of course using the same
version of the class (using JDK 1.3.1_02 on W2k).
Any help or hint would be greatly appretiated. Thanks in
advance.
Fernando P. Schapachnik
fschapachnik@v...