You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/10/22 09:43:00 UTC

[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:
> &#65279;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)