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: