You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently updated from kryo 2.21 to 2.23 and noticed that TaggedFieldSerializer had stopped working.
I think I narrowed it down to this commit: fa2f729
This test-case throws the exception. Initially I thought it was necessary to have a derived class to throw the exception, but that didn't seem to be the case.
publicclassMain {
publicstaticvoidmain(String[] args) {
Kryokryo = newKryo();
newTaggedFieldSerializer<Derived>(kryo, Derived.class);
}
publicstaticclassBase {
@Tag(1) publicintbaseTagged;
publicintbaseUntagged; // If derivedUntagged is commented, this will also throw an error.
}
publicstaticclassDerivedextendsBase {
@Tag(2) publicintderivedTagged;
publicintderivedUntagged; // This field will make FieldSerializer throw an exception
}
}
Stack Trace of interest:
Exception in thread "LWJGL Application" java.lang.IllegalArgumentException: Field "mSelected" not found on class: com.spiddekauga.voider.game.actors.BulletActor
at com.esotericsoftware.kryo.serializers.FieldSerializer.removeField(FieldSerializer.java:524)
at com.esotericsoftware.kryo.serializers.TaggedFieldSerializer.removeField(TaggedFieldSerializer.java:58)
at com.esotericsoftware.kryo.serializers.FieldSerializer.rebuildCachedFields(FieldSerializer.java:226)
at com.esotericsoftware.kryo.serializers.FieldSerializer.<init>(FieldSerializer.java:127)
at com.esotericsoftware.kryo.serializers.TaggedFieldSerializer.<init>(TaggedFieldSerializer.java:29)
The text was updated successfully, but these errors were encountered:
I recently updated from kryo 2.21 to 2.23 and noticed that TaggedFieldSerializer had stopped working.
I think I narrowed it down to this commit: fa2f729
This test-case throws the exception. Initially I thought it was necessary to have a derived class to throw the exception, but that didn't seem to be the case.
Stack Trace of interest:
The text was updated successfully, but these errors were encountered: