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: