Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Adam Tuttle / Adam Tuttle (Adam Tuttle)
Created: 04/16/2015
Components: Language
Versions: 11.0
Failure Type: Non Functioning
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Critical / All users will encounter
Locale/System: ALL / Platforms All
Vote Count: 3
Related Bugs:
CF-3976479 - Similar to
Problem Description:
The exception object available in a cfcatch / onError function doesn't support the keyExists member function. I would imagine there are other "special" structs that also don't get the struct member functions because they weren't created with {} or structNew(), but I haven't found them yet.
Steps to Reproduce:
<cfscript>
try {
throw(message="test throw");
}catch( any e ){
writeOutput("e.keyExists('message')=#e.keyExists('message')#");
}
</cfscript>
Actual Result:
"The keyExists method was not found"
Expected Result:
e.keyExists('message')=test throw
(all structures should support all struct member functions)
Any Workarounds:
use structKeyExists()
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3971067
External Customer Info:
External Company:
External Customer Name: Adam
External Customer Email:
External Test Config: My Hardware and Environment details:
OSX 10.10.2
Apache 2.4.9
CF11u5 public
Attachments:
Comments: