Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-10329

import static star: add support for static callable property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0.0-beta-2, 2.5.22, 3.0.16
    • None
    • None

    Description

      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:

      class C {
        static p = { -> print 'called' }
      }
      
      import static C.*
      
      p()
      

      If "*" is replaced by "p" this works. Add support for the wildcard case.

      Attachments

        Issue Links

          Activity

            People

              emilles Eric Milles
              emilles Eric Milles
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: