[ 
https://issues.apache.org/jira/browse/GROOVY-11900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18071808#comment-18071808
 ] 

ASF GitHub Bot commented on GROOVY-11900:
-----------------------------------------

paulk-asert merged PR #2436:
URL: https://github.com/apache/groovy/pull/2436




> 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
>            Priority: Major
>
> 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