Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Himansu Sekhar Khuntia / Himansu Sekhar Khuntia (Himansu Sekhar Khuntia)
Created: 08/05/2015
Components: Language
Versions: 10.0
Failure Type: Data Corruption
Found In Build/Fixed In Build: Final /
Priority/Frequency: Normal / All users will encounter
Locale/System: English / Windows 7 64-bit
Vote Count: 6
Related Bugs:
CF-4119653 - Similar to
Problem Description: The scope precedence of unscoped variables is done in the following order as per (https://wikidocs.adobe.com/wiki/display/coldfusionen/About+scopes). But ARGUMENTS scope takes the precedence over the LOCAL scope.
Steps to Reproduce:
<cffunction name = "foo">
<cfargument name = "a" default = "In arguments">
<cfset local.a = "In local scope">
<cfdump var = "#a#"><br>
</cffunction>
<cfset foo()>
<cfset foo("function Call")>
Actual Result:
In arguments
function Call
Expected Result:
In local scope
In local scope
Any Workarounds:
Use scope in all the variables used.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 4031746
External Customer Info:
External Company:
External Customer Name: Himansu
External Customer Email:
External Test Config: My Hardware and Environment details:
ColdFusion 10
Version 10,0,15,292620
Tomcat Version 7.0.54.0
Edition Developer
Serial Number Developer
Operating System Windows 7
Attachments:
Comments: