tracker issue : CF-3976478

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

duplicate() incorrectly duplicates an exception object

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 04/26/2015

Components: Language

Versions: 11.0

Failure Type: Data Corruption

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / Some users will encounter

Locale/System: ALL / Platforms All

Vote Count: 0

Detail: http://blog.adamcameron.me/2015/04/cfml-and-for-that-matter-not-everything.html

Summary:
When one uses duplicate() to duplicate() an Exception object, it does not duplicate the exception, it returns a struct. If it can't duplicate() it properly, it should error.

Repro:
Code in that blog article.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3976478

External Customer Info:
External Company:  
External Customer Name: Adam
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

It is low impact yet fixing it would be a high risk. So closing it
Comment by Uday O.
7715 | September 25, 2015 08:59:17 AM GMT
Fair enough.
Comment by External U.
7716 | September 25, 2015 09:25:58 AM GMT
Or how about exception.toStruct() I usually do this anyway before working with exceptions. (Well, I loop over the keys, etc.)
Comment by External U.
7717 | October 05, 2015 04:17:58 PM GMT