Title:
Using array notation for an argument value while calling a method will cause other argument values to be "undefined".
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Chris Phillips / Chris Phillips (cf_chris)
Created: 01/29/2013
Components: Language, Datastructure
Versions: 10.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: Final / 284722
Priority/Frequency: Critical / All users will encounter
Locale/System: English / Windows 7 64-bit
Vote Count: 3
Problem Description:
If you use array notation inside the parenthesis of a method call to assign an argument value (and that method call is inside of an "if") it will make private variables being passed in as other argument values error out as "undefined".
Furthermore, if you add a dump and/or abort it will sort of "fix" the "undefined" issue, but will NOT dump or abort.
Steps to Reproduce:
Run the file attached "index.cfm" file.
Actual Result:
Test1() will work fine.
Test2() will throw the "undefined" error for the "summary" var.
Test3() will work fine because the array literal syntax is not inside of the method call.
Test4() will work (sort of) but, should NOT. It skips right past an "abort" and magically the "summary" variable is defined. And it runs TWICE!
Expected Result:
Test1() should work fine.
Test2() should work, but, DOES NOT.
Test3() should work fine.
Test4() should "abort". And it should NOT run twice!?
Any Workarounds:
Test3() shows the only viable workaround which is to create the variable using array notation before the method call and pass it in.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3492496
Keywords:
FixTested
External Customer Info:
External Company:
External Customer Name: cf_chris
External Customer Email:
External Test Config: My Hardware and Environment details:
Windows 7
ColdFusion: 10,0,7,283649
Update Level: /I:/ColdFusion/InstanceDP1/lib/updates/chf10000007.jar
(Same behavior on CF 9,0,1,274733)
Attachments:
- January 30, 2013 00:00:00: 1_index.cfm
Comments: