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

ConversionService should remain capable of converting multidimensional array. [SPR-11608] #16231

spring-projects-issues opened this issue Mar 26, 2014 · 1 comment
in: core type: bug


Copy link

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

Christoph Strobl opened SPR-11608 and commented

The following conversion works in 4.0.2 but fails in 4.0.3.

  public void multidimensionalArrayToListConversionShouldConvertEntriesCorrectly() {
    String[][] grid = new String[][] { new String[] { "1", "2", "3", "4" }, new String[] { "5", "6", "7", "8" },
        new String[] { "9", "10", "11", "12" } };

    ConversionService conversionService = ConversionServiceFactory.createDefaultConversionService();
    List<String[]> converted = conversionService.convert(grid, List.class);
    String[][] convertedBack = conversionService.convert(converted, String[][].class);

    Assert.assertArrayEquals(grid, convertedBack);

Affects: 4.0.3

Referenced from: commits 5c9fc09, b9bac1d

Copy link
Collaborator Author

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

Juergen Hoeller commented

Fixed through relaxing that recently modified assertion in getElementTypeDescriptor...


@spring-projects-issues spring-projects-issues added type: bug in: core 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
in: core type: bug
None yet

No branches or pull requests

2 participants