Details
Description
When using a String constant as the value for an annotation groovyc errors out with the following message:
Attribute 'value' should have type java.lang.String but found type java.lang.Object in @SpringBean
I've attached sample code to reproduce. The annotation and PersonDao are regular Java classes, just as was my case when finding the bug. The PersonAction is a Groovy class.
Issue Links
- duplicates
-
GROOVY-2827
org.codehaus.groovy.ast.expr.PropertyExpression when using external constants in annotations
-