Hello, is there a way to provide info about renaming of my classes for my polymorphic serializer I ...
a
Hello, is there a way to provide info about renaming of my classes for my polymorphic serializer I encountered a
SerializationException
when I renamed the package
my.package.MyClass
to
my.package.example.MyClass
, as
'my.package.example.MyClass'
was not registered for polymorphic serialization in the scope of
'MySealedClass'.
a
you can add
@SerialName("my.package.MyClass")
to your class to keep the old identifier, even though the class is in a new package
a
Thank you
a
np
e
Interesting, I would consider you have hard references in the serialization registration, and IDE should handle the package change if you do it through IDE action.
a
it is because polymorphic serializer