Status/Resolution/Reason: Closed/Withdrawn/
Reporter/Name(from Bugbase): Sean Corfield / Sean Corfield (Sean Corfield)
Created: 12/29/2008
Components: Language, CFSCRIPT
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Major / All users will encounter
Locale/System: English / Platforms All
Vote Count: 0
Problem:
Math operations in constant expressions are incorrect.
From the forums:
On Dec 26, 2008, at 11:51 AM, Sean Corfield - CF_9_Bugs Discussion
wrote:
> Can someone else confirm this change of behavior between CF8 and CF9?
I think I’ve confirmed that the hot fix for "property" is the culprit
here.
> <cfset x = 112702318 />
> <cfset y = x/(1024*1024) />
> <cfdump var="#variables#" />
>
> CF8 result:
>
> struct
> X 112702318
> Y 107.481306076
>
> CF9 result:
(with hot fix)
> struct
> X 112702318
> Y 112702318
CF9 result (without hot fix):
struct
X 112702318
Y 107.481306076
BTW, this code works even with the hot fix:
<cfset x = 112702318 />
<cfset y = x/1024/1024 />
<cfdump var="#variables#" />
Is this perhaps an expression optimization bug in the compiler
introduced since Alpha 2?
Method:
See the code fragments in the Problem Summary.
Result:
No error message - you just get the wrong results.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037147
External Customer Info:
External Company:
External Customer Name: Sean Corfield
External Customer Email: 479B4EDC43F3A88B992016B6
External Test Config: 12/29/2008
Attachments:
Comments: