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

In an Array with element type Object or *, Flex builder incorrectly indicates the compiler warning 3554

    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
      Language Found: English

    Description

      (This issue occurs in 3.0.3 but the sdk list doesn't give that as an option)

      Steps to reproduce:
      1. Create an array with array element type *, Object, or Function
      2. In mxml, populate that array with a function reference.

      Actual Results:
      Flex builder gives a warning:
      "Function value used where type * was expected. Possibly the parentheses () are missing after this function reference."

      Expected Results:
      No warning should be displayed.

      Workaround (if any):
      Instead of using the mxml to define the elements like this:
      <mx:myArray>
      <mx:Function>

      {functionReference}

      </mx:Function>
      </mx:myArray>

      Define your array like this>
      <mx:myArray>

      {[functionReference]}

      </mx:myArray>

      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: