FullType
s with generic input doesn't equal concrete type
#1189
Labels
FullType
s with generic input doesn't equal concrete type
#1189
I'm trying to implement a REST API deserialisation with
built_value
. Because the general pattern for Responses ist always equal, I want to use a Generic to handle this part (I know I still have to registers the builder anyway).The type of the serializer should be taken from the wrapping generic instead of passing another
FullType
with the concrete instances.After a lot of trial and error I found the problem that causes the BuildFactory to not be found for the type.
TLDR; The
hashCode
for the concrete and from a generic derivedFullType
don't match.A little sample:
Is there a way to get them to equal somehow?
The text was updated successfully, but these errors were encountered: