Collection type resolver considering only lower bound of wildcard [SPR-5344] #10017
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Tuomas Kiviaho opened SPR-5344 and commented
GenericCollectionTypeResolver.extractTypeFromParameterizedType seems to be returning lower bound of the wildcard. Hence DependencyDescriptor.getCollectionType for field List<? extends Shape> would return null instead of Shape. getCollectionType method seems to be only used with DefaultListableBeanFactory.findAutowireCandidates that matches against sub classes and wildcard usage as above doesn't seem to be working because Shape is upper bound of the wildcard.
Forum reference http://forum.springsource.org/showthread.php?p=215760
Affects: 2.5.6
The text was updated successfully, but these errors were encountered: