tracker issue : CF-3516704

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

Yet another bug with struct-literal syntax

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Adam Cameron / Adam Cameron (Adam Cameron)

Created: 03/09/2013

Components: Language

Versions: 10.0

Failure Type:

Found In Build/Fixed In Build: Final / 286571

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Windows 7 64-bit

Vote Count: 0

Problem Description:
The compiler on CF9 and CF10 both barf at the code below

Steps to Reproduce:
<cfscript>
thread name="t1" action="run" data={key="value"} {
	// do stuff
}
</cfscript>

Actual Result:
Unable to complete CFML to Java translation.

Error information unsupported statement: class coldfusion.compiler.ASTfunctionDefinition
 
Stack Trace

coldfusion.compiler.CompilerInternalException: Unable to complete CFML to Java translation.
	at coldfusion.compiler.StmtAssembler.assembleStatement(StmtAssembler.java:367)
	at coldfusion.compiler.FunctionAssembler.assembleStatement(FunctionAssembler.java:235)
	at coldfusion.compiler.StmtAssembler.block(StmtAssembler.java:219)
	at coldfusion.compiler.FunctionAssembler.function(FunctionAssembler.java:188)

Expected Result:

Any Workarounds:
Create the struct separately:
<cfscript>
data = {key="value"};
thread name="t1" action="run" data=data {
	// do stuff
}
</cfscript>

Or use Railo, which doesn't have this problem

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

Watson Bug ID:	3516704

External Customer Info:
External Company:  
External Customer Name: Adam Cameron.
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

Should be a simple check, can we add a test case and close?
Comment by Immanuel N.
16075 | December 04, 2013 08:12:04 AM GMT
test case added at:\depot\ColdFusion\qa\cf\regression\coretests\coldfusion\tags\web-application-framework\cfthread\bugs\CF-3516704\
Comment by Suchika S.
16076 | December 06, 2013 12:46:31 AM GMT