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
When a custom serializer is defined on an overridable property of a base class, I expected this serializer to be used for extending classes which override this property as well.
Instead, when a property is overridden, the custom serializer specified using @Serializable( with = ... ) is not used.
@Serializable
abstract class Base
{
@Serializable( with = CustomSerializer )
abstract val willOverride: String
}
class Extends( override val willOverride: String ) : Base()
The only way I see to make this work is to specify @Serializable( with = CustomSerializer ) on willOverride of all extending classes.
The text was updated successfully, but these errors were encountered:
When a custom serializer is defined on an overridable property of a base class, I expected this serializer to be used for extending classes which override this property as well.
Instead, when a property is overridden, the custom serializer specified using
@Serializable( with = ... )
is not used.The only way I see to make this work is to specify
@Serializable( with = CustomSerializer )
onwillOverride
of all extending classes.The text was updated successfully, but these errors were encountered: