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

CallResponder lastResult type causes type coercion error for a simple Gumbo dataProvider binding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • RPC: General
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      This happens because the Gumbo components changed dataProvider from Object to IList. That makes sense, but CallResponder's lastResult is still typed to Object.

      Some solutions:
      1. Change lastResult from Object to *
      2. Or, push lastResult down to ListCallResponder and ObjectCallResponder subclasses with IList / Object type declarations, and require devs to use the appropriate responder

      Steps to reproduce:

      <FxList dataProvider="

      {cr.lastResult}

      "/>

      <Declarations>
      <CallResponder id="cr"/>
      </Declarations>

      Actual Results: Compile error: Implicit coercion of a value with static type Object to a possibly unrelated type mx.collections:IList.

      Expected Results: This simple case should compile without error.

      Workaround (if any): Add a cast:

      {cr.lastResult as IList}

      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: