tracker issue : CF-3041359

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 82728:(Watson Migration Closure)cfinvoke fails when calling a function passed in as an argument to a component function

| View in Tracker

Status/Resolution/Reason: Closed/Deferred/

Reporter/Name(from Bugbase): Brett Suwyn / Brett Suwyn (WF Software)

Created: 04/22/2010

Components: Language, CF Component

Versions: 9.0.1

Failure Type: Unspecified

Found In Build/Fixed In Build: 9,0,0,251028 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Win All

Vote Count: 0

Problem:

cfinvoke fails when calling a function passed in as an argument to a component function.error:  Entity has incorrect type for being called as a function.The symbol you provided arguments.testFunction is not the name of a function. 
Method:

<!--- create two files, reproduce.cfm  and test.cfc --->
<!--- reproduce.cfm --->
<cffunction name="testing">
  <cfdump var="it worked" />
  <cfabort />
</cffunction>
<cfset test = createObject ("component", "test" ) />
<cfset test.runTestFunction( testing ) />

<!--- test.cfc --->
<cfcomponent>
  <cffunction name="runTestFunction">
    <cfargument name="testFunction"/>
    <cfinvoke method="arguments.testFunction" />
  </cffunction>
</cfcomponent>

Call reproduce in your browser and you will get the error.  Expected output is a dump of the string "it worked"
Result:

 Entity has incorrect type for being called as a function.The symbol you provided advice is not the name of a function.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3041359

External Customer Info:
External Company:  
External Customer Name: Brett Suwyn
External Customer Email: 1E736C5744AAE692992016B7
External Test Config: 04/22/2010

Attachments:

Comments: