Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MessageMethodArgumentResolver does not handle payload type and sub classes [SPR-11584] #16208

Closed
spring-projects-issues opened this issue Mar 20, 2014 · 1 comment
Assignees
Labels
in: messaging type: enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Mar 20, 2014

Stéphane Nicoll opened SPR-11584 and commented

MessageMethodArgumentResolver does not check the effective payload type. So if a method declares Method<Foo> and the current message is Message<Bar> it will be injected with a nasty ClassCastException at runtime.

Besides the resolver is strict, it cannot handle the declaration of a sub-type of Message.


Referenced from: commits 2aee0d8, 2c1d5ef

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Mar 20, 2014

Stéphane Nicoll commented

PR available: #492

@spring-projects-issues spring-projects-issues added in: messaging type: enhancement labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 4.0.3 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: messaging type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants