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

Set compareFunction property to mx:Sort, mx:SortField with invalid return type function, no error popup.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • Collections
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1.create a mx:Sort and mx:SortField under "Declarations" tag. Set fields property of Sort to this SortField. Set name property of SortField to correct field name.
      2.Set a compareFunction with incorrect return type, like Date, void.
      3.Create an ArrayCollection instance and set Sort to created mx sort instance.
      4.Call refresh() method of this ArrayCollection instance.

      Actual Results:
      No error popup. And the sort result will keep as not-sorted.

      Expected Results:
      An error popup to figure out compareFunction is not correct with signature.

      Workaround (if any):

      NOTE: Please see sample application code attached.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: