Trace function improperly handled by ColdFusion 9

While the function probably works exactly the way you would expect, the code analyzer for CF9 doesn't produce an error (or even an "information") flag if you have a function in your code named "trace".

You can even create the function and the server won't throw an error like it's supposed to when it encounters this:

<cffunction name="trace" ...>...</cffunction>

Instead it will compile fine and then when you try to use the function you may or may not get an error message like "Attribute validation error for TRACE. The value of the VAR attribute is invalid. Cannot set variable with name [blah blah]".

This is about the 3rd or 4th time I've discovered unexpected and mostly undocumented changes in behavior in CF9 or 9.0.1. Does anyone else feel like the release of this version of CF was a bit sloppy or is it just me?

Comments
Raymond Camden's Gravatar It is documented though: ://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WS09E6439E-5327-40ea-A668-5278A6D3FB03.html
# Posted By Raymond Camden | 4/23/12 9:47 AM
Ike's Gravatar @Ray -- Oh I didn't mean that the trace() function wasn't documented -- that comment was in reference to the behavioral changes to onRequestEnd and Query-of-Query. This one just wasn't wired into the compiler correctly to produce that error -- or added to the code analyzer.
# Posted By Ike | 4/23/12 1:46 PM
Adam Tuttle's Gravatar File a bug. They may not address it this late in CF9's life cycle, but they may fix it for CF10.
# Posted By Adam Tuttle | 4/24/12 5:16 AM
Ike's Gravatar @Adam - Submitted s://bugbase.adobe.com/index.cfm?event=bug&id=3174462
# Posted By Ike | 4/24/12 7:48 PM
Clive's Gravatar Oh I didn't mean that the trace() function wasn't documented -- that comment was in reference to the behavioral changes to
I suppose I could still file a bug report... although I don't personally need it.
# Posted By Clive | 12/12/12 10:44 PM
Clive's Gravatar File a bug.
# Posted By Clive | 12/12/12 10:45 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.5.006. | Protected by Akismet | Blog with WordPress