Skip to content

MapToMapConverter cannot distinguish MultiValueMap in target [SPR-9499] #14133

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

Closed
spring-projects-issues opened this issue Jun 13, 2012 · 3 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented Jun 13, 2012

Dave Syer opened SPR-9499 and commented

It seems that MapToMapConverter cannot distinguish MultiValueMap in target, so it, or one of its converter helpers, will use add() and pass in a List to a map value (which is a List itself) instead of using addAll() (or the equivalent).


Affects: 3.1.1

Issue Links:

@spring-projects-issues
Copy link
Collaborator Author

Gary Russell commented

Hi Phil,

I am wondering if this was intentional, but TypeDescriptor.map() previously allowed null arguments in keyTypeDescriptor and valueTypeDescriptor.

We have a test case in SI that is now broken. I don't recall the details, but I believe we added the test as a result of an issue in where conversion is attempted but the generic type information is not available.

I think it was because the situation that Dave reported (conversion when we don't have type information).

It is not clear to me whether we should remove the test (because this fixes the root cause) or whether the method should still work with null descriptors

https://jira.springsource.org/browse/INT-2955

Thanks

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Oct 18, 2013

Phil Webb commented

Gary Russell That's an oversight on my part, see #15634

@spring-projects-issues
Copy link
Collaborator Author

Gary Russell commented

cool; thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants