Skip to content

Simple function registry is not using conversion hint to de-serialize message to input type provided in the cloud function  #1075

Closed
@sudhu678

Description

@sudhu678

Describe the bug
The simple function registry checks whether a conversion hint is required in order to invoke the respective message converter. For the below input type, conversion happens without type. By using the default JSON converter, the message is deserialized to LinkedHashMap instead of the Java class for Event which is a generic type and Account list type.

Consumer<org.springframework.messaging.Message<Message<Event<List<Account>>>>>

Why don't you consider actualType for conversion if it has valid input here?

image

Sample
If possible, please provide a test case or sample application that reproduces
the problem. This makes it much easier for us to diagnose the problem and to verify that
we have fixed it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions