Skip to content

SQS Listener deserializes generics types incorrectly #1597

@artur1211

Description

@artur1211

Type: Bug

Component:
SQS but may be also others

Describe the bug
@SqsListener methods fail to correctly deserialize payloads with generic types. E.g.:

  1. Message<List<TestPayload>> — list elements are deserialized as LinkedHashMap instead of TestPayload
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: sqsSQS integration related issuetype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions