tracker issue : CF-4010446

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

Cannot catch throwables

| View in Tracker

Status/Resolution/Reason: To Fix//NeedMoreInfo

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

Created: 06/22/2015

Components: Language

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / Some users will encounter

Locale/System: ALL / Platforms All

Vote Count: 0

See here: http://blog.adamcameron.me/2015/06/cfml-spending-pointless-time-looking.html

One should be able to catch any sort of java.lang.Throwable, not just java.lang.Exceptions.

As per the Java docs (https://docs.oracle.com/javase/tutorial/essential/exceptions/catch.html):
{quote}
The argument type, ExceptionType, declares the type of exception that the handler can handle and must be the name of a class that inherits from the Throwable class.
{quote}

I realise CFML is not Java, but it's close enough in this situation that this ought to be true of CFML as well.

Note: Lucee already manages this fine.

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

Watson Bug ID:	4010446

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

Attachments:

Comments:

Can you please confirm in what version of ColdFusion this is going to be implemented in. It says "to fix" but does not say which version.
Comment by External U.
7185 | January 25, 2016 08:20:31 AM GMT