Avi-Levi / kryo

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

Serialization problems with >= 128 classes #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Serialize an object graph with many different classes (>=128)
2. Deserialize the object graph

What is the expected output? What do you see instead?

The object graph should be deserialized correctly. But in the serialization 
code, the class id is written out as a byte, while the deserialization code 
expects an optimized integer value. For values >= 128 this leads to incorrect 
class id value and desynchronization of the object stream.

What version of the Kryo are you using?

2.20

See my proposed patch

Original issue reported on code.google.com by selene.f...@artemicode.de on 6 Sep 2012 at 6:50

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r341.

Original comment by nathan.s...@gmail.com on 6 Sep 2012 at 7:14

GoogleCodeExporter commented 9 years ago
Thanks!

Original comment by nathan.s...@gmail.com on 6 Sep 2012 at 7:15