Open redmitry opened 2 years ago
I think, I found the problem:
AnnotationIntrospector does not introspect parents for the @JsonbTypeDeserializer
annotation.
It just returns the 'null':
if (deserializerAnnotation == null) {
return null;
}
I tried simple sulution and it seems to work. issue-569.patch.txt
PS the same should work for the #467
Hi @redmitry , thank you for reporting this issue and taking time to create the patch :-) I will take a look into what you have found.
Describe the bug The deserializer defined on the parent type is ignored while working OK with JsonbConfig.
To Reproduce
@JsonbTypeDeserializer(AnimalDeserializer.class)
Expected behavior Even though the Cat is deserialized I expect the custom deserializer is called, It works when it is passed to the JsonBuilder:
JsonbBuilder.create(new JsonbConfig().withDeserializers(new AnimalDeserializer()))
System information:
Additional context See simple maven project attached yasson-test-001.zip