Title:
Bug 83671:Named arguments with implicit structs and arrays cannot use local variables
| View in TrackerStatus/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: