Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
1.6-beta-1
-
None
-
Mac OS 10.5.2
Java 1.5.0_13
-
Patch
Description
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:
http://www.nabble.com/defining-the-runtime-visibility-of-an-annotation-definition-to15883658.html