Due to a bug in the compiler, annotations on Groovy code with retention RUNTIME are treated like annotations with retention CLASS, i.e. they make it into the class file but are not accessible at runtime. Main problem is that retention information in class AnnotationNode is not set correctly. Attached is a patch that fixes this problem and adds a regression test.
For additional information see: