tracker issue : CF-3037134

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

Bug 74742:component { } does not allow surrounding <cfscript> tags

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Sean Corfield / Sean Corfield (Sean Corfield)

Created: 12/23/2008

Components: Language, CFSCRIPT

Versions: 9.0

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 / 221053

Priority/Frequency: Normal / Most users will encounter

Locale/System: English / Platforms All

Vote Count: 3


component { } does not allow surrounding <cfscript> tags.
It should be possible to use the new script component syntax inside <cfscript> tags because that's consistent with previous behavior and it is what developers will expect.


Try to create an instance of this CFC:

component {
public any function init() {
return this;


Invalid CFML construct found on line 2 at column 1.

ColdFusion was looking at the following text:

The CFML compiler was processing:

A cfscript tag beginning on line 1, column 2.
The error occurred in /Applications/ColdFusionCentaur/wwwroot/test/cfc_script.cfc: line 2
1 : <cfscript>
2 : component {
3 : public any function init() {
4 : return this;

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

Watson Bug ID:	3037134

External Customer Info:
External Company:  
External Customer Name: Sean Corfield
External Customer Email: 479B4EDC43F3A88B992016B6
External Test Config: 12/23/2008



This bug has been voted..
Vote by External U.
24337 | November 10, 2011 07:10:01 PM GMT
This bug has been voted..
Vote by External U.
24338 | November 10, 2011 07:10:02 PM GMT
This bug has been voted..
Vote by External U.
24339 | November 10, 2011 07:10:03 PM GMT