tracker issue : CF-4203264

select a category, or use search below
(searches all categories and all time range)
Title:

Cfcatch object is not really a struct

| View in Tracker

Status/Resolution/Reason: To Fix//HaveNewInfo

Reporter/Name(from Bugbase): Bradley Wood / ()

Created: 08/10/2018

Components: Language

Versions: 2016,11.0,2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: Final /

Priority/Frequency: Normal /

Locale/System: / Platforms All

Vote Count: 1

Problem Description:
CFCatch object is not really a struct in ColdFusion and isStruct() returns false.  Lucee Server correctly handles this and catch objects actually inherit from StructImple which gives full struct functionality and member functions.

https://trycf.com/gist/a0ded34f038f94bb0965d2e2382a8ace/acf2018?theme=monokai

Steps to Reproduce:

    try {oogie.boogie();}
    catch(any ex)
    {
        writeDump({
			"isStruct" : isStruct(ex)
		});
	}

Actual Result:
No

Expected Result:
yes

Any Workarounds:
No

Attachments:

Comments:

Duplicate of this closed ticket: https://tracker.adobe.com/#/view/CF-3041466
Comment by Bradley W.
29471 | August 10, 2018 06:50:21 PM GMT
Hi Brad, Agreed. I believe that's similar to what Adam Cameron was suggesting in his comments on https://tracker.adobe.com/#/view/CF-3971067. Thanks!, -Aaron
Comment by Aaron N.
29484 | August 12, 2018 06:30:06 AM GMT
+1 - In general, CF's implementation of member functions caters to less engineering hours instead of less customer confusion. (referring to type-specific vs type-casting)
Vote by Aaron N.
29485 | August 12, 2018 06:33:49 AM GMT