groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (GROOVY-3278) Using referenced String constant as value of Annotation causes compile error
Date Tue, 23 Oct 2018 04:48:00 GMT

     [ https://issues.apache.org/jira/browse/GROOVY-3278?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paul King resolved GROOVY-3278.
-------------------------------
    Resolution: Fixed

I am going to mark this as resolved. The proposed PR modifies the AsmDecompiler to collect
the required information. That is the default but the fix won't work if you disable "asmResolving".

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

Mime
View raw message