Title:
Bug 83396:(Watson Migration Closure)Creating implicit N-D arrays without explicit initialization creates structures for unintiallized array elements
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/LowImpact
Reporter/Name(from Bugbase): / bill shelton (virtix)
Created: 06/20/2010
Components: Language, Datastructure
Versions: 9.0.1
Failure Type: Unspecified
Found In Build/Fixed In Build: 9,0,1,266737 /
Priority/Frequency: Normal / Most users will encounter
Locale/System: English / Linux Ubuntu 9
Vote Count: 0
Problem:
Creating implicit N-D arrays without explicit initialization creates structures for unintiallized array elements
Method:
//simple example (mxunit)function arrayBug(){ a = []; // a[1] = arrayNew(1); this makes it OK a[1][1] = [1,2,3]; a[1][2] = [3,4,5]; //skip initialization of a[2] and go right to a[2][n], which creates a struct with an array member //a[2] = arrayNew(1); this makes it OK a[2][1] = [1,2,3]; a[2][2] = [3,4,5]; a[2][3] = [6,7,8]; debug(a); assertTrue( isStruct(a[1]) , "This passes. But should be an array or throw exception." ); }
Result:
Depends on how array elements are referred to.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041686
External Customer Info:
External Company:
External Customer Name: bill shelton
External Customer Email: 259D3B324929474C992015A8
External Test Config: 06/20/2010
Attachments:
Comments: