You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Vladimír Oraný (JIRA)" <ji...@apache.org> on 2018/11/16 10:03:00 UTC
[jira] [Resolved] (GROOVY-8878) make @Named* annotations a language
feature
[ https://issues.apache.org/jira/browse/GROOVY-8878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimír Oraný resolved GROOVY-8878.
------------------------------------
Resolution: Implemented
This was just a misunderstanding how the annotation works. Thank [~paulk] for a detailed explanation.
> make @Named* annotations a language feature
> -------------------------------------------
>
> Key: GROOVY-8878
> URL: https://issues.apache.org/jira/browse/GROOVY-8878
> Project: Groovy
> Issue Type: Improvement
> Components: Static compilation
> Affects Versions: 3.x
> Reporter: Vladimír Oraný
> Priority: Major
> Attachments: namedParams.patch
>
>
> As of Groovy 2.5 @Named* annotations are processed by AST transformation which disallows to apply the annotations to Java classes. Would be nice if this becomes a language feature similar to how @DelegatesTo and @ClosureParams annotation works which can be used in Java code and Groovy compiler still understands them.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)