tracker issue : CF-3041466

select a category, or use search below
(searches all categories and all time range)
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 Tracker

Status/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:

Can this be re-evaluated. Lucee Server handles cfcatch objects correctly and they actually inherit from StructImple so isStruct() returns true and all struct BIFs and member functions work on them.
Comment by Bradley W.
29469 | August 10, 2018 06:46:46 PM GMT