Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33738

ArrayCollection addAll() adds items in the wrong order

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Apache Flex 4.10.0
    • Apache Flex 4.10.0
    • Collections
    • 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".

      Attachments

        Activity

          People

            Unassigned Unassigned
            cchilds Colin Childs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: