views:

342

answers:

2

I know I can annotate my classes in Groovy with annotations, but can I write the annotation itself in Groovy (as opposed to just using annotation written in Java)? If so, from what version?

+1  A: 

Yes you can. Take a look at this link: http://groovy.codehaus.org/Annotations+with+Groovy

Kico Lobo
I've seen the page before and still I can't see example of annotation defined in groovy :(
Dan
+1  A: 

Defining of annotations in groovy is not yet supported by the compiler. Since, there is a joint compiler it is not a big problem but sure does take some groovy-ness away from groovy :-)

See more: http://groovy.codehaus.org/Annotations+with+Groovy

Ask when it will be supported here: [email protected]

stack.trace