I recently came across a problem that I thought was a bug and it was dealing with the new scripting features. I was trying to set some attributes in cfscript using the new javadoc syntax. What I thought was that ColdFusion was reading the information from the comments and I was always a little confused on how it would know that this was an attribute deceleration versus a plain old comment. The problem I was having with the code below is that it was not actually extending my abstract service like I intended. You don't actually need the script tags but for code coloring purposes I am using them. Can you spot the problem below?

If you said that I was using comment syntax instead of the javadoc syntax you are correct. I was not even aware there was a difference until someone pointed it out to me on one of the forums. The javadoc syntax starts with /** not /*. So if we update our code it should look like this.

This brings up another good question though. I actually prefer this method. I have gone back and forth but I thinks when I am working in script this just feels right to me. Mixing attribute into script like the code below just does not. What does everyone else think? Do you have a preference and if so why?