payamrastogi / kryo

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

EnumSet deserialization doesn't work #126

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When deserializing a object that contains an EnumSet, after serializing it with 
call to:
kryo.writeClassAndObject(output, objectContainingEnumSet);

I get the following exception when deserializing it with call to:

kryo.readClassAndObject(input)

Unable to find class: java.util.RegularEnumSet

I put a breakpoint into the default enum set deserializer method and the thread 
never reaches that.

I'm using Kryo 2.20 on IBM JVM java version 5.0. References are disabled.

Original issue reported on code.google.com by rok.lena...@gmail.com on 20 Aug 2013 at 10:03

GoogleCodeExporter commented 9 years ago
Can you check with the latest Kryo release, i.e. 2.22?

Have you tried to use kryo-serializers 
(https://github.com/magro/kryo-serializers), which provides the 
EnumSetSerializer - serializer for EnumSet?

Original comment by romixlev on 2 Oct 2013 at 8:00