Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 697A0C1E7 for ; Fri, 13 Sep 2013 05:47:10 +0000 (UTC) Received: (qmail 39070 invoked by uid 500); 12 Sep 2013 23:54:54 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 38864 invoked by uid 500); 12 Sep 2013 23:54:53 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 38747 invoked by uid 99); 12 Sep 2013 23:54:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Sep 2013 23:54:51 +0000 Date: Thu, 12 Sep 2013 23:54:51 +0000 (UTC) From: "Justin Mclean (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-33683) Bad ordering of ListCollectionView addAllAt MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-33683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13766039#comment-13766039 ] Justin Mclean commented on FLEX-33683: -------------------------------------- No need for a change to VectorCollection > Bad ordering of ListCollectionView addAllAt > ------------------------------------------- > > Key: FLEX-33683 > URL: https://issues.apache.org/jira/browse/FLEX-33683 > Project: Apache Flex > Issue Type: Bug > Components: Collections > Affects Versions: Apache Flex 4.10.0 > Environment: Flex 4.10 (compiled for AIR 3.4, Flash Player 11.4 > Reporter: Marcus Wilkinson > Fix For: Apache Flex 4.11.0 > > Attachments: AddAllOrder.mxml > > > Steps to reproduce: > 1) Create an ArrayCollection (collectionA) with N elements > 2) Create a second ArrayCollection (collectionB) with less than N elements > 3) Call collectionA.adAll(collectionB) > Expected result: > All elements of collectionB are added to the *end* of collectionA > Actual Result > All elements of collectionB are added to collectionA at position [collectionB.length] > Suggested fix: > ListCollectionView.addAllAt : 664 > https://github.com/apache/flex-sdk/blob/develop/frameworks/projects/framework/src/mx/collections/ListCollectionView.as#L664 > Change > var maxLength:int = length > to > var maxLength:int = this.length; -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira