groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul King (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (GROOVY-8719) Add DelegatesTo annotation to CompilerCustomizationBuilder.withConfig
Date Fri, 01 Feb 2019 04:51:00 GMT

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

Paul King resolved GROOVY-8719.
-------------------------------
       Resolution: Fixed
         Assignee: Paul King
    Fix Version/s: 3.0.0-alpha-5
                   2.5.6

Proposed change applied. Thanks!

> 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)

Mime
View raw message