You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2021/06/08 18:00:00 UTC
[jira] [Closed] (GROOVY-5504) Add an annotation for Extension
modules
[ https://issues.apache.org/jira/browse/GROOVY-5504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles closed GROOVY-5504.
-------------------------------
Resolution: Won't Do
> Add an annotation for Extension modules
> ---------------------------------------
>
> Key: GROOVY-5504
> URL: https://issues.apache.org/jira/browse/GROOVY-5504
> Project: Groovy
> Issue Type: New Feature
> Components: Compiler
> Affects Versions: 2.0-rc-2
> Reporter: Guillaume Balaine
> Priority: Major
>
> As I understood it during the presentation at gr8conf,
> one can use Groovy's modular capacity to extend other classes like Categories just like Groovy already does for String with tokenize, trim etc...
> Currently, one has to edit a properties file located in META-INF/org/codehaus/groovy and maintain a list of classes that are extensions.
> I suggest that an annotation @Extension (or such like) be added like Mixins so that the compiler knows what class is being extended at compile to avoid having a bloated properties file to maintain.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)