Skip to content

MappingJackson2MessageConverter doesn't check if payload assignable to target type #22386

@tdorzhi

Description

@tdorzhi

Given object with usual toString implementation (for example Foo(field1=SomeString) and sending it to messageChannel using MessageBuilder#withPayload factory method results in above mentioned line to be executed, which predictably throws

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions