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
DefaultConversionService does not support converting a List to an Iterable
The expectation is to return the original list unchanged (a no-op conversion).
Instead, conversion fails trying to convert the first element of the list to Iterable.
@Test
public void testListToIterableConversionBug() {
final DefaultConversionService conversionService = new DefaultConversionService();
final List<Object> raw = new ArrayList<Object>();
raw.add("one");
raw.add("two");
final Object converted = conversionService.convert(raw, Iterable.class);
Assert.assertSame(raw, converted);
}
org.springframework.core.convert.ConversionFailedException: Unable to convert value [one, two] from type [java.util.ArrayList] to type [java.lang.Iterable]; reason = 'No converter found capable of converting from [java.lang.String] to [java.lang.Iterable]'; nested exception is org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from [java.lang.String] to [java.lang.Iterable]
Affects: 3.0 RC2
The text was updated successfully, but these errors were encountered:
Lance Arlaus opened SPR-6478 and commented
DefaultConversionService does not support converting a List to an Iterable
The expectation is to return the original list unchanged (a no-op conversion).
Instead, conversion fails trying to convert the first element of the list to Iterable.
Affects: 3.0 RC2
The text was updated successfully, but these errors were encountered: