Title:
Bug 82915:(Watson Migration Closure)When passing cfcatch to a function, inside function if you do isStruct() around the variable that cfcatch is being passed to isStruct returns false even though when you dump the variable the dump says
| View in TrackerStatus/Resolution/Reason: Closed/Won't Fix/LowImpact
Reporter/Name(from Bugbase): Ryan Vikander / Ryan Vikander (r.vikander)
Created: 05/17/2010
Components: Language, Datastructure
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Normal / Unknown
Locale/System: English / Platforms All
Vote Count: 1
Problem:
When passing cfcatch to a function, inside function if you do isStruct() around the variable that cfcatch is being passed to isStruct returns false even though when you dump the variable the dump says it is a struct.
Method:
<cffunction name="testFunction" output="true">
<cfargument name="exception" required="true"/>
<cfdump var="#arguments.exception#">
<cfdump var="#isStruct(arguments.exception)#">
</cffunction>
<cftry>
<cfthrow message="Help!!!!" />
<cfcatch type="any">
<cflog text="#isStruct(cfcatch)#">
<cfset testFunction(exception=cfcatch) />
</cfcatch>
</cftry>
Result:
N/A
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3041466
External Customer Info:
External Company:
External Customer Name: Ryan Vikander
External Customer Email: 14F536F0446C87099920157F
External Test Config: 05/17/2010
Attachments:
Comments: