Yesterday I figured out the source of a bug, and today I did a bunch of testing so I could thoroughly understand the problem. One of the changes in ColdFusion 9 is the introduction of the LOCAL scope within functions of CFCs or UDFs. The idea seems good, but it has some serious consequences to any code creating a local variable named local. Adobe had to make some decisions about how ColdFusion 9 would interpret old code, and unfortunately their decision causes lots of my code to fail if run on their newer product.
I've attached (see below) a verbosely commented MXUnit test case that should be run with ColdFusion 9 to produce the output seen in the screenshot. The file can be viewed immediately as a plain-text file too: LocalScopeTestCase.cfc.txt Sorry I don't have any fancy code syntax highlighting applied.
LocalScopeTestCase.cfc