Status/Resolution/Reason: Closed/Withdrawn/NotABug
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 12/12/2014
Components: Language
Versions: 11.0
Failure Type:
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Major / Some users will encounter
Locale/System: ALL / Platforms All
Vote Count: 4
Repro:
<cfscript>
function f(numeric x){}
f(false);
</cfscript>
On ColdFusion 11, we get this:
The X argument passed to the f function is not of type numeric.
On earlier versions of ColdFusion and Railo, it works fine (as it should).
false should be cast to a numeric (0) here.
This is non-theoretical, as it's impacting your client's code: http://stackoverflow.com/q/27447751/894061
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3877068
External Customer Info:
External Company:
External Customer Name: Adam Cameron.
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: