duchien85 / kryo

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

Unable to deserialize with CompatibleFieldSerializer #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create any class with an enum field
2. Register the class and enum in step 1 with CompatibleFieldSerializer
3. Serialize the class and deserialize it with CompatibleFieldSerializer

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

Expected output: the object should be deserialized correctly

Received exception:

Class cannot be created (missing no-arg constructor): 
test.KryoBackwardCompatiblityTest$TestEnumSer
Serialization trace:
testEnum (test.KryoBackwardCompatiblityTest$AModel)
    at com.esotericsoftware.kryo.Kryo.newInstance(Kryo.java:688)
    at com.esotericsoftware.kryo.Serializer.newInstance(Serializer.java:75)
    at com.esotericsoftware.kryo.serialize.CompatibleFieldSerializer.readObjectData(CompatibleFieldSerializer.java:215)
    at com.esotericsoftware.kryo.Serializer.readObject(Serializer.java:61)
    at com.esotericsoftware.kryo.serialize.CompatibleFieldSerializer.readObjectData(CompatibleFieldSerializer.java:283)
    at com.esotericsoftware.kryo.serialize.CompatibleFieldSerializer.readObjectData(CompatibleFieldSerializer.java:215)
    at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:566)

What version of the Kryo are you using?

1.03 
1.04

Please provide any additional information below.

Original issue reported on code.google.com by thin...@gmail.com on 3 May 2011 at 6:45

GoogleCodeExporter commented 9 years ago
Hi, scratch that. This issue is invalid. Could you please remove it?

Thanks

Original comment by thin...@gmail.com on 4 May 2011 at 7:34

GoogleCodeExporter commented 9 years ago
Okie. :)

Original comment by nathan.s...@gmail.com on 29 Mar 2012 at 6:25