tracker issue : CF-4026106

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

Script syntax or array-of-object function arguments doesn't work.

| View in Tracker

Status/Resolution/Reason: To Fix//

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 07/26/2015

Components: Language

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Platforms All

Vote Count: 2

This works:

{code}
<cffunction name="takesArrayOfTests">
	<cfargument name="tests" type="Test[]">
	<cfreturn tests.len()>
</cffunction>
{code}

This doesn't:

{code}
function takesArrayOfTests(Test[] tests){
	return tests.len();
}
{code}

Expectations:
It should.

Actual:
Invalid CFML construct found on line 6 at column 32.

ColdFusion was looking at the following text:
[

The CFML compiler was processing:

A script statement beginning with function on line 6, column 1.
A cfscript tag beginning on line 1, column 2.
 
The error occurred in C:/apps/adobe/ColdFusion/11/express/cfusion/wwwroot/shared/cfml/dataTypes/complexTypeChecking/arraysOfObjectsAsArgs.cfm: line 6
4 : include "safeRun.cfm";
5 : 
6 : function takesArrayOfTests(Test[] tests){
7 : 	return tests.len();
8 : }

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

Watson Bug ID:	4026106

Reason:	BugVerified

External Customer Info:
External Company:  
External Customer Name: Adam
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Repro case attached.
Comment by Suchika S.
6457 | July 29, 2015 12:57:11 AM GMT
Thanks for jumping on this so quickly, Suchika :-)
Comment by External U.
6458 | July 29, 2015 01:00:01 AM GMT
This should be fixed.......
Vote by External U.
6460 | September 30, 2015 06:02:54 PM GMT
+1 ......................
Vote by External U.
6461 | October 03, 2015 08:33:05 PM GMT
Can you please confirm in what version of ColdFusion this is going to be implemented in. It says "to fix" but does not say which version.
Comment by External U.
6459 | January 25, 2016 08:17:08 AM GMT