Title:
Bug 75027:The structure creation accept reserved keywords as their keys, which they shouldn't be
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/
Reporter/Name(from Bugbase): David R / David Dharmaraj R (Daverms)
Created: 01/16/2009
Components: Language, Datastructure
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Win All
Vote Count: 1
Problem:
The structure creation accept reserved keywords as their keys, which they shouldn't be.
I tried this, (I've used the "AND" keyword here).
<cfset testStruct=StructNew()>
<cfset testStruct.AND="Key1">
<cfdump var="#testStruct#">
and the execution was success.
Please fix this.
Thanks,
David R
Method:
<cfset variables.AND = "AND">
<cfdump var="#variables#"><br>
<cfset Application.AND = "AND">
<cfdump var="#Application.AND#"><br>
<cfset s1 = structnew()>
<cfset s4 = structnew()>
<cfset s1.AND = "AND">
<cfdump var="#s1#"><br>
<cfset s2 = {"AND"="AND"}>
<cfdump var="#s2#"><br>
<cfset s3["AND"] = "AND">
<cfdump var="#s3#"><br>
<!---
This case will not worj for implicit structs since there is a AND = here
<cfset s4 = {AND="AND"}>
<cfdump var="#s4#"><br>
--->
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037286
External Customer Info:
External Company:
External Customer Name: David Dharmaraj R
External Customer Email: 443F56B144BB54C5992016B7
External Test Config: 01/16/2009
Attachments:
Comments: