If there is a no-argument constructor marked as JsonCreator
and a constructor reported as DefaultCreator
, the DefaultCreator
is incorrectly used.
#5045
Labels
to-evaluate
Issue that has been received but not yet evaluated
Search before asking
Describe the bug
If both
JsonCreator
andDefaultCreator
are reported, theJsonCreator
should take precedence.On the other hand, in certain cases, the
DefaultCreator
may take precedence.This issue is a Javaized version of the following
FasterXML/jackson-module-kotlin#932
#5040
Version Information
2.18.3
.Reproduction
Expected behavior
Deserialization should succeed, but in fact
has no property name ...
is reported.Additional context
The full stack trace when run on the
2.19
branch ofkotlin-module
.The text was updated successfully, but these errors were encountered: