This repository was archived by the owner on Jun 24, 2021. It is now read-only.
This repository was archived by the owner on Jun 24, 2021. It is now read-only.
Open
Description
CodecRegistry
documentation says If a class is registered under multiple polymorphic serializers, the chosen serializer is unpredictable.
There are clean workaround for this and are well known.
The workarounds include using the SerializationCodec` class.
However, the unpredictable behavior can be removed.
The idea is to declare an SerialInfo
annotation and if multiple bases are present for a sub, then the base annotated with the declared annotation will take precedence.
Can call the annotation DefaultBase
or something like that.