Weird Coldfusion Error
So a coworker found this out if you run this test page Coldfusion will return that the cfcatch is not a struct even though when you dump the variable it says that it is a struct. Also on the argument in the function if you put a type="struct" Coldfusion will error out saying that it is not a struct. I have filed a bug here: Bug Also it turns out that it is not just a CF9 issue I have seen it as well in my local CF8 instance.
2 <cfargument name="exception" required="true"/>
3 <cfdump var="#arguments.exception#">
4 <cfdump var="#isStruct(arguments.exception)#">
5</cffunction>
6
7<cftry>
8 <cfthrow message="Help!!!!" />
9
10 <cfcatch type="any">
11 <cfset testFunction(exception=cfcatch) />
12 </cfcatch>
13</cftry>
<cfdump var="#arguments.exception.getClass().getName()#">
which, in this case returns 'coldfusion.runtime.CustomException'