Skip to content

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

Closed

Description

@spring-projects-issues

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:

Activity

  1. spring-projects-issues commented on Oct 18, 2013

    @spring-projects-issues
    CollaboratorAuthor

    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

  2. spring-projects-issues commented on Oct 18, 2013

    @spring-projects-issues
    CollaboratorAuthor

    Phil Webb commented

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

  3. spring-projects-issues commented on Oct 18, 2013

    @spring-projects-issues
    CollaboratorAuthor

    Gary Russell commented

    cool; thanks

  4. added
    type: bug
    in: core
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions