tracker issue : CF-4204401

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

structCopy cannot be used on exception object

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Bradley W. / ()

Created: 05/20/2019

Components: Language

Versions: 2018

Failure Type: Crash

Found In Build/Fixed In Build: Final / latest

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Platforms All

Vote Count: 0

Problem Description:
structCopy cannot be used on exception object

Steps to Reproduce:
var getNull = function(){};
try {
	foo = createObject( 'java', 'java.io.File' ).init( getNull() );
} catch( any e ) {
	e = structCopy( e );
}


Actual Result:
The StructCopy ColdFusion function is not supported on this object.

Expected Result:
A struct to be created with the same top level keys

Lucee Server works as expected.

Attachments:

Comments: