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-8376) Add @DelegatesTo to SwingBuilder methods that call setDelegate
Date Mon, 13 Nov 2017 02:53:00 GMT

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

Paul King resolved GROOVY-8376.
-------------------------------
       Resolution: Fixed
         Assignee: Paul King
    Fix Version/s: 2.4.13

Proposed PR merged. The SwingBuilder changes were merged back to 2_4_X. I left the identity
change just until 2_5_X.

> Add @DelegatesTo to SwingBuilder methods that call setDelegate
> --------------------------------------------------------------
>
>                 Key: GROOVY-8376
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8376
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Eric Milles
>            Assignee: Paul King
>             Fix For: 2.4.13
>
>
> 4 mehtods in SwingBuilder (edt, doLater, doOutside, build) call setDelegate(this) on
their closure params.  Could each have the param annotated with {{@DelegatesTo(SwingBuilder)}}?
> Ex:
> {code}
>     public Object build(@DelegatesTo(SwingBuilder) Closure c) {
>         c.setDelegate(this)
>         return c.call()
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message