Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Elliott Sprehn / Elliott Sprehn (Elliott Sprehn)
Created: 03/25/2010
Components: Language, CFSCRIPT
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 / 274142,274233
Priority/Frequency: Normal / Most users will encounter
Locale/System: English / Platforms All
Vote Count: 1
Problem:
[ES] Nested implicit structs ignore numeric keys. {z={"1" = 2}} has z with no keys.
Method:
x = {z={"1" = 2}};two = x.z["1"]; // This should work, but the key "1" is missing!
[vmannebo]
commented code works, but in script, yes, nested implicit structs throw an error
if numeric keys are used
<cfscript>
x = {z={"1" = 2}};
two = x.z["1"]; // This should work, but the key "1" is missing!
y = {"1" = 2};
two1 = y["1"]; // This works
cfscript>
<!---
this works
--->
<cfset t = structnew()>
<cfset t["1"] = 2>
<cfset s = structnew()>
<cfset s.z = t>
<cfset key = s.z["1"]>
--->
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041217
Deployment Phase: Release Candidate
External Customer Info:
External Company:
External Customer Name: Elliott Sprehn
External Customer Email: 202D59C844579997992016B7
External Test Config: 03/25/2010
Attachments:
Comments: