kotlinx.serialization icon indicating copy to clipboard operation
kotlinx.serialization copied to clipboard

Use the fully qualified class name instead of the simple class name in the serial name of polymorphic descriptors

Open werner77 opened this issue 3 years ago • 0 comments

Right now the serial name of a polymorphic descriptor is of the following form

kotlinx\.serialization\.(Polymorphic|Sealed)<(.*)>

Where the second capture group (part between angular brackets is the simple name of the base class. This can lead to a name clash when multiple base classes exist with the same simple name. For this reason it makes sense to use the fully qualified name instead.

werner77 avatar Feb 22 '22 11:02 werner77