Just thought that might interest some people.

I stumbled over a bug in Groovy's handling of annotations while translating
some components from Java. It is known and already filed here:
http://jira.codehaus.org/browse/GROOVY-3278

You can't use static constant variables in annotations, so

@Parameter(defaultBinding = BindingConstants.LITERAL)

won't work for example, while

@Parameter(defaultBinding = "literal")

will.

This is quite a bit of a putoff, since if you start a bigger application now
you might run into problems when upgrading Tapestry at some time in the
future and also it might affect your own component parameters when you work
with enums or constants. It's not fixed yet in 1.6.1-SNAPSHOT but hopefully
it gets worked on soon.

Reply via email to