groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Milles (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GROOVY-8719) Add DelegatesTo annotation to CompilerCustomizationBuilder.withConfig
Date Sun, 29 Jul 2018 00:03:00 GMT
Eric Milles created GROOVY-8719:
-----------------------------------

             Summary: 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


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