tracker issue : CF-3041814

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

Bug 83671:Named arguments with implicit structs and arrays cannot use local variables

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Elliott Sprehn / Elliott Sprehn (Elliott Sprehn)

Created: 07/26/2010

Components: Language, CFSCRIPT

Versions: 9.0.1

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 274800

Priority/Frequency: Major / Unknown

Locale/System: English / Platforms All

Vote Count: 1

Problem:

Named arguments with implicit structs and arrays cannot use local variables.This is extremely critical since it breaks lots of code that uses the CFC tag wrappers when using setAttributes() and lots of applications. Please provide a hotfix!
Method:

<cfscript>

	function func() {
		writedump(arguments);
	}

	function test()
	{
		var localVariable=1;
		func(z={x=localVariable});
	}

	test();

</cfscript>

Results in 'Variable LOCALVARIABLE is undefined.'
Result:

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

Watson Bug ID:	3041814

Deployment Phase:	Release Candidate

External Customer Info:
External Company:  
External Customer Name: Elliott Sprehn
External Customer Email: 202D59C844579997992016B7
External Test Config: 07/26/2010

Attachments:

Comments:

This bug is extremely critical. It executes code in functions that are never called and breaks code that worked in 9.0
Vote by External U.
21569 | November 11, 2011 12:45:15 AM GMT