CFC defined in {} shorthand behaving weirdly
Weird behavior of cfc defined using shorthand:
component {remote function get() {return "helllooooo";}}
compared to normal behavior defined this way:
<cfcomponent>
<cffunction name="get" access="remote" returntype="String" httpmethod="GET">
<cfreturn "hello world">
</cffunction>
</cfcomponent>
The 2nd example called as a REST service correctly returns hello world
The 1st example however returns helllooooo but ALSO appends the entire component's .cfc code as follows:
helllooooocomponent { remote string function get() { return "helllooooo"; } }
Any ideas anybody what could be causing this? I'm stumped. Thks
