Title:
Bug 83378:(Watson Migration Closure)for( var i in arr ) where arr is a native array fails, though this worked in earlier versions of 9
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/LowImpact
Reporter/Name(from Bugbase): Elliott Sprehn / Elliott Sprehn (Elliott Sprehn)
Created: 06/17/2010
Components: Language, CFSCRIPT
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 1
Problem:
for( var i in arr ) where arr is a native array fails, though this worked in earlier versions of 9.0.1You now get:You have attempted to dereference a scalar variable of type class [Lcom.class.Name as a structure with members.
Method:
// This code worked in earlier versions of CF9.0.1var arr = createObject("java","java.lang.Class").forName("java.lang.String").getDeclaredMethods();for( var x in arr ){assert("java.lang.reflect.Method",x.getClass().getName());}
Result:
You have attempted to dereference a scalar variable of type class [Ljava.lang.reflect.Method; as a structure with members.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041672
External Customer Info:
External Company:
External Customer Name: Elliott Sprehn
External Customer Email: 202D59C844579997992016B7
External Test Config: 06/17/2010
Attachments:
Comments: