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
Problem:
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.
Method:
Try to create an instance of this CFC:
<cfscript>
component {
public any function init() {
return this;
}
}
</cfscript>
Result:
Invalid CFML construct found on line 2 at column 1.
ColdFusion was looking at the following text:
component
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
Attachments:
Comments: