tracker issue : CF-3863518

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

[ANeff] Doc Bug for: cfobject() _is_ supported

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/NotABug

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 12/07/2014

Components: Documentation

Versions: 11.0

Failure Type: Unspecified

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Trivial / Some users will encounter

Locale/System: ALL / Platforms All

Vote Count: 0

Currently, the cfscript doc says:

The script support is not available for the following tags:

<cfscript>
<cfoutput> (use writeOutput() instead)
<cfdump> (use writeDump() instead)
<cfinvoke> (use invoke() instead)
<cfinvokeargument>
<cfobject> (use createObject instead)

However, <cfobject> should be removed from that list b/c it is supported in CF11 Final (11,0,0,289822).  Repro:

MyCFC.cfc
---------
component {function myFunction() {return ARGUMENTS;}}

index.cfm
---------
<cfscript>
  cfobject(type="component", component="MyCFC", name="o");
  writeDump(o);
</cfscript>

Dumps the object

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

Watson Bug ID:	3863518

External Customer Info:
External Company:  
External Customer Name: itisdesign
External Customer Email:

Attachments:

Comments:

Related URL: https://wikidocs.adobe.com/wiki/display/coldfusionen/cfscript#cfscript-Scriptsupportfortags
Comment by External U.
9654 | December 07, 2014 04:01:42 PM GMT
I've updated the doc. This ticket can be marked Closed/Fixed. Thanks!, -Aaron
Comment by External U.
9655 | December 07, 2014 04:09:05 PM GMT
Though cfobject() works, we clearly want you to use CreateObject(). We have reverted back the doc changes you had made as that was kept there intentionally.
Comment by Rupesh K.
9656 | December 08, 2014 06:31:14 AM GMT