Skip to content

Add protected methods to resolve the target type for payload arguments [SPR-17503] #22035

Closed
@spring-projects-issues

Description

@spring-projects-issues

olegz opened SPR-17503 and commented

While working on https://github.com/spring-cloud/spring-cloud-stream/issues/1527 I noticed that MessageConversion was not attempted on handler with signature public Person echo(Object value) where the payload was actually byte[]

 

I believe it is due to the following code on line 130. I believe the order of arguments should be different if (ClassUtils.isAssignable(payloadClass, targetClass))

 


Affects: 5.1.2

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