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

Paul King reassigned GROOVY-11900:
----------------------------------

    Assignee: Paul King

> grab adds static constructor to annotation definition
> -----------------------------------------------------
>
>                 Key: GROOVY-11900
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11900
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Eric Milles
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 5.0.6
>
>
> Consider the following:
> {code:groovy}
> @Grab('org.apache.commons:commons-lang3:3.20.0')
> import org.apache.commons.lang3.StringUtils
> @interface A { String value() }
> @A(StringUtils.EMPTY) class C { }
> {code}
> The last line produces error "No explicit/default value found for annotation 
> attribute '<clinit>' ".
> Not sure if static clinit is supported for annotations.  If it is, the 
> attribute checking needs a filter for it.  Maybe the filter should include 
> all static methods.
> WRT grab, should it be adding its magic to all classes of a script class or 
> just the script class?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to