Record, enums and fixed are named types. Each has a fullname that is composed of two parts; a name and a namespace. Equality of names is defined on the fullname.
Currently, Encoder (and Codes.<...>) have the guards for encoding to be just map() which is wrong for Enum and Fixed.
https://avro.apache.org/docs/current/spec.html#names
Currently,
Encoder
(andCodes.<...>
) have the guards for encoding to be justmap()
which is wrong forEnum
andFixed
.