tracker issue : CF-3041340

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

Bug 82707:When using arraySet(

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Matthew Currier / Matthew Currier (fingerskier)

Created: 04/16/2010

Components: Language, Functions

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:

When using arraySet(..., N1, N2, structNew()) all created array elements references that structure.  So, changing any individual array element changes all of them.  My perception is that this arraySet() should create a new structure for each array element.
Method:

Reference the following code:<cfset color = arrayNew(1)><cfset arraySet(color, 1, 6, structNew())><cfset color[1].outer = "FF0000"><cfset color[1].inner = "FFEEEE"><cfdump var="#color#"><cfset color[2].outer = "00FF00"><cfset color[2].inner = "EEFFEE"><cfdump var="#color#"><cfset color[3].outer = "0000FF"><cfset color[3].inner = "EEEEFF"><cfdump var="#color#"><cfset color[4].outer = "FFFF00"><cfset color[4].inner = "FFFFEE"><cfdump var="#color#"><cfset color[5].outer = "FF00FF"><cfset color[5].inner = "FFEEFF"><cfdump var="#color#"><cfset color[6].outer = "00FFFF"><cfset color[6].inner = "EEFFFF"><cfdump var="#color#">
Result:

N/A

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

Watson Bug ID:	3041340

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: Matthew Currier
External Customer Email: 017D6A44475B604399201587
External Test Config: 04/16/2010

Attachments:

Comments: