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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Adobe Flex SDK Previous
    • None
    • 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 spark:Sort and spark: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 spark 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: