Status/Resolution/Reason: Closed/Won't Fix/
Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)
Created: 07/14/2014
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: 7
See: http://cfmlblog.adamcameron.me/2014/07/coldfusion-some-built-in-functions.html
Summary:
This should work:
x = throw(type="MissingArgumentException", message="The correct exception was thrown");
However it errors:
Parameter validation error for the THROW function.
A built-in ColdFusion function cannot accept an assignment statement as a parameter, although it can accept expressions. For example, THROW(d=a*b) is not acceptable.
That error message is bogus.
Same / similar with the other two I mentioned. It seems to be related to the functions which take name/value pairs for arguments. The parser doesn't seem to "understand" them in some (completely valid) situations.
--
Adam
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3788414
External Customer Info:
External Company:
External Customer Name: Adam Cameron.
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: