tracker issue : CF-3041672

select a category, or use search below
(searches all categories and all time range)
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 Tracker

Status/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:

This bug has been voted..
Vote by External U.
22049 | November 11, 2011 12:55:57 AM GMT
Hi Elliott, Can this be marked Closed/Fixed? The following runs w/o error in CF11 and dumps the objects from the array: arr = createObject("java","java.lang.Class").forName("java.lang.String").getDeclaredMethods(); for(x in arr) {writeDump(x);} Thanks!, -Aaron
Comment by External U.
22048 | October 05, 2015 12:52:46 AM GMT