duchien85 / kryo

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

IllegalArgumentException thrown using CompatibleFieldSerializer during deserialization #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
No problems in serializing / deserializing using a default FieldSerializer. 
Uisng the CompatibleFieldSerializer serializing / deserializing round-trips 
work for shallow graphs but for deeply nested collections the round-trip fails 
by throwing an IllegalArgumentException ( usually during deserialization and 
when passing a null value to a primitive value field ). Cant tell if its the 
deserialization thats broken or the serialized stream is incomplete / wrong.

Registering the classes to use the CompatibleFieldSerializer remedies the 
problem in some cases ( such as the example attached ) but in others it has no 
effect ( not attached ).

What is the expected output? What do you see instead?
Expected round trip serializing / deserializing to produce equivalent objects - 
instead the test case attached errors out when using CompatibleFieldSerializer 

What version of the Kryo are you using?
1.03

Please provide any additional information below.
Attached test case and MultiMap / aggregate object to reproduce the error

Original issue reported on code.google.com by mike.new...@gmail.com on 22 Dec 2010 at 6:16

Attachments:

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

Original comment by nathan.s...@gmail.com on 22 Dec 2010 at 7:50

GoogleCodeExporter commented 9 years ago
Thanks for the report and nice test case. Fixed in SVN 138.

Original comment by nathan.s...@gmail.com on 22 Dec 2010 at 7:50