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
Adam S
07/10/2023, 6:04 PM
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
Andrey Tabakov
07/10/2023, 6:11 PM
Thank you
a
Adam S
07/10/2023, 6:11 PM
np
e
Eugen Martynov
07/11/2023, 8:00 AM
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.