ArrayToCollectionConverter
should default to List
if target type is Collection
#28048
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
If one asks
ArrayToCollectionConverter
to convert an array to aCollection
the delegating call toCollectionFactory
results in aLinkedHashSet
being used as conversion target.I think it makes sense to rather default to a
List
based implementation in that particular case, as arrays naturally allow duplicates and retain order and handing aCollection
as conversion target kind of indicates no preference in whether to retain those semantics or rather drop duplicates.The text was updated successfully, but these errors were encountered: