Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6-rc-1
-
None
-
OSX 10.5.6
JDK 1.6
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.
Attachments
Attachments
Issue Links
- duplicates
-
GROOVY-2827 org.codehaus.groovy.ast.expr.PropertyExpression when using external constants in annotations
- Closed
- links to