CollectionToCollectionConverter.convert() improvement for untyped collections [SPR-11479] #16104
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Gary Russell opened SPR-11479 and commented
Consider
Line #63...
https://github.com/spring-projects/spring-framework/blob/master/spring-core/src/main/java/org/springframework/core/convert/support/CollectionToCollectionConverter.java#L63
...determines that
copyRequired == false
.However, line 70 then proceeds to copy the elements from the source to the target, which is eventually discarded, when line #84 simply returns the source.
It looks to me like it should have
Affects: 3.2.8, 4.0.2
Issue Links:
Referenced from: commits bea94d5, d317b63
Backported to: 3.2.9
The text was updated successfully, but these errors were encountered: