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

List control throws TypeError when the String "constructor" is in its viewport.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 3.2 (Release)
    • None
    • mx: List
    • 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 List control
      2. Add the String "constructor" to it in some way (e.g. as in the following application)

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:List>
      <mx:String>constructor</mx:String>
      </mx:List>
      </mx:Application>

      3. Run the application

      Actual Results:
      Application crashes with the following error:
      TypeError: Error #1034: Type Coercion failed: cannot convert Object$ to mx.controls.listClasses.IListItemRenderer.

      Expected Results:
      Application runs and displays the List control with the word "constructor" as an element

      Workaround (if any):

      The String can be replaced with a labeled Object. e.g.
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:List>
      <mx:Object label="constructor"/>
      </mx:List>
      </mx:Application>

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: