Type: Bug
Component:
SQS but may be also others
Describe the bug
@SqsListener methods fail to correctly deserialize payloads with generic types. E.g.:
Message<List<TestPayload>> — list elements are deserialized as LinkedHashMap instead of TestPayload
Wrapper<TestPayload> (generic outer type) — the generic field is deserialized as LinkedHashMap instead of TestPayload
Problem appears from version 4.0.0.
Sample
Test application provided sqs-deserialization-main.zip.
Type: Bug
Component:
SQS but may be also others
Describe the bug
@SqsListenermethods fail to correctly deserialize payloads with generic types. E.g.:Message<List<TestPayload>>— list elements are deserialized asLinkedHashMapinstead ofTestPayloadWrapper<TestPayload>(generic outer type) — the generic field is deserialized asLinkedHashMapinstead ofTestPayloadProblem appears from version 4.0.0.
Sample
Test application provided sqs-deserialization-main.zip.