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 Object
The expectation is to return the original list unchanged (a no-op conversion).
Instead, the first element of the list is returned.
@Test
public void testListToObjectConversionBug() {
final DefaultConversionService conversionService = new DefaultConversionService();
final List<Object> raw = new ArrayList<Object>();
raw.add("one");
raw.add("two");
final Object converted = conversionService.convert(raw, Object.class);
Assert.assertSame(raw, converted);
}
Test Output: junit.framework.AssertionFailedError: expected same:<[one, two]> was not:<one>
Affects: 3.0 RC2
The text was updated successfully, but these errors were encountered:
Lance Arlaus opened SPR-6477 and commented
DefaultConversionService does not support converting a List to an Object
The expectation is to return the original list unchanged (a no-op conversion).
Instead, the first element of the list is returned.
Test Output: junit.framework.AssertionFailedError: expected same:<[one, two]> was not:<one>
Affects: 3.0 RC2
The text was updated successfully, but these errors were encountered: