Title:
Bug 83682:(Watson Migration Closure)The evalution order of conditionals with implicit structs and arrays is wrong
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/LowImpact
Reporter/Name(from Bugbase): Elliott Sprehn / Elliott Sprehn (Elliott Sprehn)
Created: 07/27/2010
Components: Language, CFSCRIPT
Versions: 9.0.1
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 2
Problem:
The evalution order of conditionals with implicit structs and arrays is wrong. The implicit struct and array values are evaluted first before the conditional is evaluted.
Method:
function wrong_evaluation_order(){var array = [1];3 < 2 or func([array[5]]);}wrong_evaluation_order();The element at position 5 of dimension 1, of array variable "ARRAY," cannot be found.There should be no error, the first part of the OR statement is false.
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041818
External Customer Info:
External Company:
External Customer Name: Elliott Sprehn
External Customer Email: 202D59C844579997992016B7
External Test Config: 07/27/2010
Attachments:
Comments: