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

Compiler error for undefined property or method in an inner class or fx:Component tag should be improved

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Later
    • Adobe Flex SDK 4.5 (Release)
    • None
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Try to compile sample file

      Actual Results:
      Compiler Error: 1120: Access of undefined property getEmployeeFullName

      Expected Results:
      Compiler Error: 1120: Access of undefined property getEmployeeFullName. Please ensure that getEmployeeFullName is defined for the inner class and not just the outer class.

      Sample File:

      <?xml version="1.0" encoding="utf-8"?>
      <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark">
      <fx:Script>
      <![CDATA[
      public function getEmployeeFullName(item:Object):String

      { return item.firstname + " " + item.lastname; }

      ]]
      >
      </fx:Script>
      <s:List id="empList" left="0" right="0" top="0" bottom="0" >
      <s:itemRenderer>
      <fx:Component>
      <s:MobileIconItemRenderer labelFunction="getEmployeeFullName" />
      </fx:Component>
      </s:itemRenderer>
      </s:List>
      </s:View>

      Workaround (if any):

      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: