You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GenericConversionService ignores converters for arrays: if you add a converter for an array type it is ignored at runtime. The conversion service instead tries to be clever and looks for a converter for the element type in the array. It might find one, but even if it does, it would be the wrong default choice of converter because there is an exact match between the target type and an existing converter.
Affects: 3.0 GA
1 votes, 2 watchers
The text was updated successfully, but these errors were encountered:
Dave, what exactly failed for you there? I added unit tests for a Converter<String[], Integer[]> and a Converter<String, Integer[]> - and both work for me... against the latest Spring 3.0.4 snapshot at least.
I tried a custom Converter<String[], Resource[]> - works for me as well. I'm afraid you'll have to provide a failing test case against the latest 3.0.4 snapshot...
Dave Syer opened SPR-7462 and commented
GenericConversionService ignores converters for arrays: if you add a converter for an array type it is ignored at runtime. The conversion service instead tries to be clever and looks for a converter for the element type in the array. It might find one, but even if it does, it would be the wrong default choice of converter because there is an exact match between the target type and an existing converter.
Affects: 3.0 GA
1 votes, 2 watchers
The text was updated successfully, but these errors were encountered: