tracker issue : CF-3040181

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

Bug 80082:Unable to declare a local variable called valueList which breaks existing code

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): Sean Corfield / Sean Corfield (Sean Corfield)

Created: 09/19/2009

Components: Language, Tags

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 9,0,0,241018 /

Priority/Frequency: Normal / Unknown

Locale/System: English / Platforms All

Vote Count: 1

Problem:

Unable to declare a local variable called valueList which breaks existing code.<cfset var valueList = 0 />That's a perfectly reasonable variable declaration but it fails as a syntax error in CF9 Beta.
Method:

Try to create an instance of the following component. Note that changing valueList to other built-in function names does NOT cause this error. valueList appears to be unique:<cfcomponent><cffunction name="test"><cfset var valueList = 0 /></cffunction></cfcomponent>
Result:

Invalid CFML construct found on line 4 at column 28.ColdFusion was looking at the following text:valueListThe CFML compiler was processing:A cfset tag beginning on line 4, column 18.A cfset tag beginning on line 4, column 18. The error occurred in /Library/WebServer/Documents/cf9test/ws/rec.cfc: line 42 : 3 : <cffunction name="test">4 : <cfset var valueList = 0 />5 : </cffunction>6 :

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

Watson Bug ID:	3040181

External Customer Info:
External Company:  
External Customer Name: Sean Corfield
External Customer Email: 479B4EDC43F3A88B992016B6
External Test Config: 09/19/2009

Attachments:

Comments:

+1 vote. quotedValueList too. -- Adam
Vote by External U.
22848 | November 11, 2011 12:38:13 AM GMT