Candyjing1024 / kryo

Automatically exported from code.google.com/p/kryo
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

CompatibleFieldSerializer fails on a single field delete #110

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Copy the kryo.bin file to a particular location. Edit test.java reference to 
kryo.bin to point to that location.
2. Run test.java
3. Program fails to deserialize class.

To run the full test:
1. Edit MeasureSettings and CategorySettings to uncomment the string field and 
associated getter/setter methods.
2. Uncomment the setting of the corresponding setter methods in Test.java
3. In Test.java's main() method, uncomment method kryoWrite().
4. Run the program. You will note that the write and subsequent read succeed.
5. Now comment out the write. Comment the staticDisplayname field of 
MeasureSettings and CategorySettings (and setter call in Test).
6. Run the Test program and you get a complete failure.

Note: MeasureSettings, CategorySettings and SortSettings objects have their 
hashCode and equals implementations overridden.

What version of the Kryo are you using?
2.21-shaded

Original issue reported on code.google.com by karthik....@gmail.com on 20 Apr 2013 at 9:14

Attachments:

GoogleCodeExporter commented 8 years ago
Hi,

I tried to reproduce your problem with the latest trunk version. But it seems 
to work properly for me. Could you check and confirm on your side if the 
problem is fixed in trunk in the meantime?
If so, we would close this issue. 

Thanks,
  Leo

Original comment by romixlev on 23 Jul 2013 at 2:27