You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2019/02/21 06:19:03 UTC

[jira] [Closed] (GROOVY-8719) Add DelegatesTo annotation to CompilerCustomizationBuilder.withConfig

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

Paul King closed GROOVY-8719.
-----------------------------

> Add DelegatesTo annotation to CompilerCustomizationBuilder.withConfig
> ---------------------------------------------------------------------
>
>                 Key: GROOVY-8719
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8719
>             Project: Groovy
>          Issue Type: Improvement
>    Affects Versions: 2.5.1
>            Reporter: Eric Milles
>            Assignee: Paul King
>            Priority: Minor
>             Fix For: 2.5.6, 3.0.0-alpha-5
>
>
> InĀ {{org.codehaus.groovy.control.customizers.builder.CompilerCustomizationBuilder}}, could the {{Closure}} param have a {{DelegatesTo}} annotation indicating that the builder is the delegate?
> Proposed:
> {code:java}
> public static CompilerConfiguration withConfig(CompilerConfiguration config, @DelegatesTo(type="org.codehaus.groovy.control.customizers.builder.CompilerCustomizationBuilder") Closure code) {
> {code}
> I verified that {{delegate}} is {{CompilerCustomizationBuilder}}, {{owner}} is the compiler config script type (probably the Closure's declaring type, and {{resolveStrategy}} is {{OWNER_FIRST}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)