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/10/25 22:15:00 UTC

[jira] [Resolved] (GROOVY-10329) import static star: add support for static callable property

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

Eric Milles resolved GROOVY-10329.
----------------------------------
    Fix Version/s: 4.0.0-beta-2
       Resolution: Fixed

> import static star: add support for static callable property
> ------------------------------------------------------------
>
>                 Key: GROOVY-10329
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10329
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Eric Milles
>            Assignee: Eric Milles
>            Priority: Minor
>             Fix For: 4.0.0-beta-2
>
>
> Follow up from GROOVY-3945, GROOVY-7490, GROOVY-8389.
> https://github.com/apache/groovy/commit/92ec8815c72a2cf9e6e2153cf5eb3f37b89c8990
> https://github.com/apache/groovy/commit/56fd1b05eaf9ee7d53ce743ded0afa4677d1810b
> Consider the following:
> {code:groovy}
> class C {
>   static p = { -> print 'called' }
> }
> import static C.*
> p()
> {code}
> If "*" is replaced by "p" this works.  Add support for the wildcard case.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)