Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Apache Flex 4.10.0
-
None
Description
ArrayCollection's addAll() method has incorrect behavior. Take the following code for example:
var test:ArrayCollection = new ArrayCollection();
test.addAll(new ArrayCollection([1,2,3]));
test.addAll(new ArrayCollection([4,5,6]));
test.addAll(new ArrayCollection([7,8,9]));
trace(test);
In 4.6, this behaves as expected, and according to documentation, returning "1,2,3,4,5,6,7,8,9". In 4.10.0, it appears as though any calls to addAll() add the new items to the end of the original list, instead of the entire list, so you get the incorrect result "1,2,3,7,8,9,4,5,6".