Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Steve Onnis / Steve Onnis (Steve Onnis)
Created: 06/30/2011
Components: Language, CFSCRIPT
Versions: 10.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 9,0,1,274733 / 279825
Priority/Frequency: Normal / Unknown
Locale/System: English / Win All
Vote Count: 4
Problem:
From inside a CFC, calling GetMetaData(this).properties returns an array but looping over the array using a for() loop results in an error
Method:
<cfcomponent> <cfproperty name="foobar" type="string" /> <cffunction name="init"> <cfset LOCAL.properties = GetMetaData(this).properties /> <!--- This does not error ---> <cfloop array="#LOCAL.properties#" index="LOCAL.p"></cfloop> <!--- This errors ---> <cfscript> for (LOCAL.p in LOCAL.properties) {} </cfscript></cffunction></cfcomponent>
Result:
You have attempted to dereference a scalar variable of type class [Ljava.lang.Object; as a structure with members
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3043881
External Customer Info:
External Company:
External Customer Name: Steve Onnis
External Customer Email: 6B4F6ECA439559160AAC0C16
External Test Config: 06/30/2011
Attachments:
Comments: