Description
It's in the test case:
import org.codehaus.groovy.ast.ClassNode import java.lang.annotation.RetentionPolicy import java.lang.annotation.Retention @Retention(RetentionPolicy.RUNTIME) @interface Annotation1 {} @Annotation1 class A { @Annotation1 def field1 } new ClassNode(A).with { assert annotations: "ClassNode for class 'A' has an annotation as it should" getField('field1').with { assert !annotations: "Because of a bug FieldNode for field 'field1' doesn't have annotations" } }