so what exactly is polymorphic serialization? I'm having trouble even understanding what the issue is 🙂
a
andylamax
08/13/2020, 3:17 PM
Okay, here we go
Polymorphic serialization is done when you are trying to serializes classes with polymorphism.
Why it mostly works out of the box. If you are using sealed classes, polymorphic serialization is handled out of the box by the serialization compiler plugin
If you try to serialize non sealed classes that extends other classes without registering them as polymorphic modules, you'll get the error above
k
Karlo Lozovina
08/13/2020, 3:46 PM
that helps a bit! I'm (de)serializing classes in two hierarchies - and both of them are sealed
Karlo Lozovina
08/13/2020, 3:47 PM
maybe because one of the classes has a generic parameter
Karlo Lozovina
08/13/2020, 3:48 PM
but still, I get the error after adding a new derivec class to an already pretty bit class hierarchy...
a
andylamax
08/13/2020, 5:47 PM
exactly. Also I don't think if generics play well if they are not registered for serialization