Title:
Bug 80610:When trying to use the ternary operator in the default attribute of a cfargument it dies a horrible death
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Randy Merrill / Randy Merrill (Zoramite)
Created: 11/08/2009
Components: Language
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 9,0,0,251028 / 262089
Priority/Frequency: Normal / Most users will encounter
Locale/System: English / Platforms All
Vote Count: 2
Problem:
When trying to use the ternary operator in the default attribute of a cfargument it dies a horrible death.
Method:
<cffunction name="testing" access="public" returntype="void" output="false"><cfargument name="test" type="string" default="#(1 EQ 1 ? 'Hi' : 'Bye')#" /><!--- Anything ---></cffunction>
Result:
java.lang.UnsupportedOperationException: Unable to find an operator implementation for coldfusion.compiler.ASToperatorat coldfusion.compiler.EvaluateEngine.evaluateNode(EvaluateEngine.java:145)at coldfusion.compiler.EvaluateEngine.evaluatePrimary(EvaluateEngine.java:305)at coldfusion.compiler.EvaluateEngine.evaluateNode(EvaluateEngine.java:118)at coldfusion.compiler.EvaluateEngine._String(EvaluateEngine.java:76)at coldfusion.compiler.FunctionAssembler.cfargumentMetadata(FunctionAssembler.java:545)at coldfusion.compiler.FunctionAssembler.functionMetaData(FunctionAssembler.java:478)at coldfusion.compiler.FunctionAssembler.assemble(FunctionAssembler.java:92)at coldfusion.compiler.TemplateAssembler.assembleFunctions(TemplateAssembler.java:340)at coldfusion.compiler.TemplateAssembler.assemble(TemplateAssembler.java:105)at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:350)at coldfusion.compiler.NeoTranslator.translateJava(NeoTranslator.java:144)at coldfusion.runtime.TemplateClassLoader$TemplateCache$1.fetch(TemplateClassLoader.java:418)at coldfusion.util.LruCache.get(LruCache.java:180)at coldfusion.runtime.TemplateClassLoader$TemplateCache.fetchSerial(TemplateClassLoader.java:362)at coldfusion.util.AbstractCache.fetch(AbstractCache.java:58)at coldfusion.util.SoftCache.get_statsOff(SoftCache.java:133)at coldfusion.util.SoftCache.get(SoftCache.java:81)at coldfusion.runtime.TemplateClassLoader.findClass(TemplateClassLoader.java:591)at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74)at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)at coldfusion.CfmServlet.service(CfmServlet.java:200)at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)at java.lang.Thread.run(Thread.java:636)
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3040386
External Customer Info:
External Company:
External Customer Name: Randy Merrill
External Customer Email: 0E671672433755B3992016B6
External Test Config: 11/08/2009
Attachments:
Comments: