-
Couldn't load subscription status.
- Fork 38.8k
Description
Oliver Becker opened SPR-7289 and commented
The following simple unit test demonstrates the problem:
ConversionService service = ConversionServiceFactory.createDefaultConversionService();
List<List<String>> list = Collections.singletonList(Collections.singletonList("Foo"));
Assert.assertNotNull(service.convert(list, String.class));
Most probably the problem stems from the changed method in TypeDescriptor
public synchronized TypeDescriptor getElementTypeDescriptor() {
if (this.elementType == null) {
this.elementType = forElementType(resolveElementType());
}
return this.elementType;
}
and the fact that forElementType returns this in this case.
Affects: 3.0.3
Issue Links:
- TypeDescriptor.forElementType() is broken for nested collections [SPR-7562] #12219 TypeDescriptor.forElementType() is broken for nested collections ("is duplicated by")
Referenced from: commits 27b0403