Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)
Created: 09/23/2012
Components: Language
Versions: 10.0
Failure Type: Enhancement Request
Found In Build/Fixed In Build: Final / 286508, 288858
Priority/Frequency: Trivial / Unknown
Locale/System: English / Platforms All
Vote Count: 0
invoke() accepts an arguments array. cfinvoke does not. Could cfinvoke also accept an arguments array?
Repro:
1) Use this code (defines an array and a function):
<cfscript>
argsArray = [1,'one',2,'two','','three'];
function myFunction() {return listToArray(arrayToList(ARGUMENTS),",",true);}
</cfscript>
2) Run this code (passes array to function via invoke()):
<cfset writeDump(invoke("", "myFunction", argsArray)) />
2) See result: [1,'one',2,'two','','three'] (good!)
3) Run this code (passes array to function via cfinvoke)
<cfinvoke method="myFunction" returnvariable="foo" argumentCollection="#argsArray#" />
4) See result: "coldfusion.runtime.Array cannot be cast to java.util.Map" (not so good)
First, thanks very much for adding argument array support to invoke(). Can this argument array support also be added to cfinvoke?
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3335540
External Customer Info:
External Company:
External Customer Name: itisdesign
External Customer Email:
Attachments:
Comments: