refined generic converter concept

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1932 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Keith Donald
2009-09-18 19:57:59 +00:00
parent 44a6ad7117
commit fad7b691bf
14 changed files with 290 additions and 173 deletions
@@ -174,7 +174,7 @@ class TypeConverterDelegate {
else {
typeDesc = TypeDescriptor.valueOf(requiredType);
}
if (conversionService.canConvert(convertedValue.getClass(), typeDesc)) {
if (conversionService.matches(convertedValue.getClass(), typeDesc)) {
return (T) conversionService.convert(convertedValue, typeDesc);
}
}