[ https://issues.apache.org/jira/browse/FLEX-23100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean updated FLEX-23100: --------------------------------- Labels: easyfix easytest (was: ) > Multiple addAlls on ArrayCollection with filterfunction and refresh() causes > index out of bounds > ------------------------------------------------------------------------------------------------ > > Key: FLEX-23100 > URL: https://issues.apache.org/jira/browse/FLEX-23100 > Project: Apache Flex > Issue Type: Bug > Components: Collections > Affects Versions: Adobe Flex SDK 3.5 (Release) > Environment: Affected OS(s): All OS Platforms > Affected OS(s): All OS Platforms > Language Found: English > Reporter: Adobe JIRA > Labels: easyfix, easytest > > Steps to reproduce: > 1. create 3 arrays of objects i.e. [ {a:1, b:2}, {a:2, b:3} ] > 2. have an array collection, binded to a datagrid > 3. apply a filterfunction to the arraycollection > 4. add 1 array to the arraycollection using addAll > 5. arraycollection.refresh() > 6. add another array to the arraycollection using addAll > 7. refresh > > Actual Results: > RangeError: Index '2' specified is out of bounds. when adding the 2nd array > > Expected Results: > add success > > Workaround (if any): > 1. loop and use addItemAt > 2. This looks like a bug in the ListCollectionView.as file.. > The bug is at line 529: > this.addItemAt(addList.getItemAt(i), i+index); > should be: > list.addItemAt(addList.getItemAt(i), i+index); > courtesy valdhor @ flexcoders mailing list -- 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