tracker issue : CF-3037176

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

Bug 74800:Please remove the built-in function name collision check in CFCs

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Jared Rypka-Hauer / Jared Rypka-Hauer (Jared Rypka-Hauer)

Created: 01/06/2009

Components: Language, Functions

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Major / Unknown

Locale/System: English / Platforms All

Vote Count: 5

Problem:

Please remove the built-in function name collision check in CFCs. Considering that we can already work around it by using structInsert(this,"arrayFind",this._arrayFind), it's an irrelevant check that gets in the way of things. As far as any of us can tell there's no reason to have it in place.
Method:


Result:

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

Watson Bug ID:	3037176

External Customer Info:
External Company:  
External Customer Name: Jared Rypka-Hauer
External Customer Email: 08C411A143BC38A7992016B6
External Test Config: 01/06/2009

Attachments:

Comments:

+1 vote. Jared sums up my position on this exactly. -- Adam
Vote by External U.
24253 | November 10, 2011 07:10:29 PM GMT
This bug has been voted..
Vote by External U.
24254 | November 10, 2011 07:10:30 PM GMT
+1 ... I just ran into this problem today.
Vote by External U.
24255 | November 10, 2011 07:10:31 PM GMT
With every new release, Adobe adds more and more built-in functions that break lots of legacy code. Please remove this name conflict check because most method calls are made against an object (CFC) and are already disambiguated. The very fact that a simple workaround in a CFC allows methods with the same names as built-in functions shows that there's no reason to prevent this: component { this.arrayFind = this._arrayFind; function _arrayFind() { } } t = new Thing(); x = t.arrayFind(); // works fine
Vote by External U.
24256 | November 10, 2011 07:10:32 PM GMT
This bug has been voted..
Vote by External U.
24257 | November 10, 2011 07:10:32 PM GMT