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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.7-beta-1
    • Fix Version/s: 1.6.3, 1.7-beta-1
    • Component/s: Compiler
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: