title: Kryo Deserialzation Issue : Invalid ordinal value for Enum
body: <p>I have been working on Kryo to serialize my data and save it in a database. Later I try to fetch the serialized data again and try to deserialize it.
  Although most of the data that, I serialize get deserialized correctly, there are some scenarios where I get the following exception Trace for some data:</p>
  <pre><code>com.esotericsoftware.kryo.KryoException: Invalid ordinal for enum &quot;test.swift.mt564.Code4Ec335Type&quot;: 29
  Serialization trace:
  dataMap (parser.container.TestDataCommon)
          at com.esotericsoftware.kryo.serializers.DefaultSerializers$EnumSerializer.read(DefaultSerializers.java:331)
          at com.esotericsoftware.kryo.serializers.DefaultSerializers$EnumSerializer.read(DefaultSerializers.java:305)
          at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:767)
          at com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:139)
          at com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:17)
          at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:685)
          at com.esotericsoftware.kryo.serializers.ObjectField.read(ObjectField.java:106)
          at com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:482)
          at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:767)
          at java.lang.Thread.run(Thread.java:745)
  </code></pre>
  <p>This data was serialized and saved in the database as a BLOB a few months back. Now I am finding a need to retrieve this data and deserialize it. The above exception occurs when I try to desiralize the data into the required object.</p>
  <p>I know that while deserializing Enum Kryo uses ordinal value of Enum. But due to some reason it gets very high value of 30 for ordinal. I am not sure what is actually causing this problem.</p>