This commit is contained in:
Keith Donald 2009-09-18 23:06:29 +00:00
parent 48bc060a77
commit d37c5aba94
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ class CollectionGenericConverter implements GenericConverter {
TypeDescriptor targetElementType = targetType.getElementTypeDescriptor();
if (sourceElementType == TypeDescriptor.NULL || sourceElementType.isAssignableTo(targetElementType)) {
if (sourceType.isAssignableTo(targetType)) {
return source;
return sourceCollection;
} else {
Collection targetCollection = CollectionFactory.createCollection(targetType.getType(), sourceCollection.size());
targetCollection.addAll(sourceCollection);