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

Imports of the form "import static SimpleClassName.*" cause compile error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7-beta-1
    • 1.6.3, 1.7-beta-1
    • Compiler
    • None

    Description

      A.groovy:

      package foo
      
      class A {
        static bar() {}
      }
      

      B.groovy:

      package foo
      
      import static A.* // compile error: unable to resolve class A
      
      class B {
        def baz() {
          bar()
        }
      

      }

      "import static foo.A.*" and "import static A.bar" work as expected.

      Attachments

        Activity

          People

            roshandawrani Roshan Dawrani
            pniederw Peter Niederwieser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: