Générics constructor parameters don't apply converters #3567
Labels
in: mapping
Mapping and conversion infrastructure
status: feedback-provided
Feedback has been provided
status: on-hold
We cannot start working on this issue yet
type: bug
A general bug
Milestone
Given a class which has a type parameter, and is not used as super class.
When used in a constructor/setter for deserialization, with a type that requires the use of a converter, the converter is not called and the value is not converter, resulting in a
ClassCastException
later in the code.For example, used in correlation with an Enum (which use a converter to be mapped to a String):
I have reproduced this behaviour with other classes which use a converter.
This issue looks like the #2226 one, but here we're in the case were the wrapper class is not extended with a given type.
The text was updated successfully, but these errors were encountered: