Ticket #206 (closed defect: fixed)
Tag insight output for createObject incorrect
| Reported by: | dskaggs | Owned by: | markd |
|---|---|---|---|
| Type: | defect | Priority: | minor |
| Milestone: | 1.3.1 | Component: | tag insight |
| Version: | 1.3 | Keywords: | creatObject |
| Cc: |
Description
When you type createObject and type the opening paren, a drop list appears that shows the available types of objects you can create (com, component, web service etc). However, if you choose one of these options, CFE fails to put quotes around the selected object type and the code output is:
<cfset foo = createObject(component,"path.to.component")>
This causes ColdFusion to throw the error "Variable COMPONENT is undefined."
The correct format for the code should be as below (notice the quotes around component):
<cfset foo = createObject("component","path.to.component")>
This was observed with CFE 1.3.0 on Eclipse 3.1.2
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
