Previously the algorithm used by GenericConversionService to find
converters incorrectly searched for interfaces working up from the
base class. This caused particular problems with custom List
converters as as the Collection interface would be considered before
the List interface giving CollectionToObjectConverter precedence
over the custom converter.
The updated algorithm restores the class search order to behave in the
same way as Spring 3.1.
Issue: SPR-10116
@ -431,14 +431,6 @@ public class GenericConversionService implements ConfigurableConversionService {
@@ -431,14 +431,6 @@ public class GenericConversionService implements ConfigurableConversionService {
@ -483,12 +475,13 @@ public class GenericConversionService implements ConfigurableConversionService {
@@ -483,12 +475,13 @@ public class GenericConversionService implements ConfigurableConversionService {
@ -497,12 +490,11 @@ public class GenericConversionService implements ConfigurableConversionService {
@@ -497,12 +490,11 @@ public class GenericConversionService implements ConfigurableConversionService {
@ -512,7 +504,7 @@ public class GenericConversionService implements ConfigurableConversionService {
@@ -512,7 +504,7 @@ public class GenericConversionService implements ConfigurableConversionService {
// Check ConditionalGenericConverter that match all types
@ -526,44 +518,38 @@ public class GenericConversionService implements ConfigurableConversionService {
@@ -526,44 +518,38 @@ public class GenericConversionService implements ConfigurableConversionService {