Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0
-
None
Description
In Groovy 2.5, the annotation would be found, in Groovy 3 it is not.
Simple example:
import org.codehaus.groovy.ast.builder.AstBuilder
import org.codehaus.groovy.ast.*
ASTNode[] nodes = new AstBuilder().buildFromString('''
@interface Foo {
String value() default ""
}
@interface Bar {
@Foo
String value()
}
''')
nodes[2].methods[0].getAnnotations()