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

ArrayList dispatches wrong COLLECTION_CHANGE event

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • Collections
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      var p:Point = new Point(1,2);
      var list:ArrayList = new ArrayList([p]);
      p.x = 2;
      list.itemUpdated(p, "x", 1, 1);

      Actual Results:
      COLLECTION_CHANGE event dispatched with a PropertyChangeEvent contained in the items property

      Expected Results:
      COLLECTION_CHANGE event dispatched with a p contained in the items property

      Workaround (if any):
      This can be solved by replacing line 706 in ArrayList.as with:
      internalDispatchEvent(CollectionEventKind.UPDATE, event.item);

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: