[jira] [Commented] (GROOVY-3278) Using referenced String constant as value of Annotation causes compile error
[ https://issues.apache.org/jira/browse/GROOVY-3278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16660780#comment-16660780 ] Eric Milles commented on GROOVY-3278: - Paul, I posted a possible patch for this issue in GROOVY-7975. I have been using the patch in Greclipse for some time now. Also, John W. mentions that GROOVY-7854 may be related. > Using referenced String constant as value of Annotation causes compile error > > > Key: GROOVY-3278 > URL: https://issues.apache.org/jira/browse/GROOVY-3278 > Project: Groovy > Issue Type: Bug > Components: Compiler >Affects Versions: 1.6-rc-1 > Environment: OSX 10.5.6 > JDK 1.6 >Reporter: Gregg Bolinger >Assignee: Paul King >Priority: Major > Fix For: 3.0.0-alpha-4, 2.5.4 > > Attachments: groovy2827_qualified_annotation_constants.patch, src.zip > > > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (GROOVY-3278) Using referenced String constant as value of Annotation causes compile error
[ https://issues.apache.org/jira/browse/GROOVY-3278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16660030#comment-16660030 ] ASF GitHub Bot commented on GROOVY-3278: Github user asfgit closed the pull request at: https://github.com/apache/groovy/pull/814 > Using referenced String constant as value of Annotation causes compile error > > > Key: GROOVY-3278 > URL: https://issues.apache.org/jira/browse/GROOVY-3278 > Project: Groovy > Issue Type: Bug > Components: Compiler >Affects Versions: 1.6-rc-1 > Environment: OSX 10.5.6 > JDK 1.6 >Reporter: Gregg Bolinger >Priority: Major > Fix For: 3.x > > Attachments: groovy2827_qualified_annotation_constants.patch, src.zip > > > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (GROOVY-3278) Using referenced String constant as value of Annotation causes compile error
[ https://issues.apache.org/jira/browse/GROOVY-3278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16658782#comment-16658782 ] ASF GitHub Bot commented on GROOVY-3278: GitHub user paulk-asert opened a pull request: https://github.com/apache/groovy/pull/814 GROOVY-3278: Using referenced String constant as value of Annotation … …causes compile error You can merge this pull request into a Git repository by running: $ git pull https://github.com/paulk-asert/groovy groovy3278 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/groovy/pull/814.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #814 > Using referenced String constant as value of Annotation causes compile error > > > Key: GROOVY-3278 > URL: https://issues.apache.org/jira/browse/GROOVY-3278 > Project: Groovy > Issue Type: Bug > Components: Compiler >Affects Versions: 1.6-rc-1 > Environment: OSX 10.5.6 > JDK 1.6 >Reporter: Gregg Bolinger >Priority: Major > Fix For: 3.x > > Attachments: groovy2827_qualified_annotation_constants.patch, src.zip > > > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)