Eric Milles created GROOVY-11900:
------------------------------------
Summary: 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
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 is missing 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)