Groovy
  1. Groovy
  2. GROOVY-3423

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

        Activity

        No work has yet been logged on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development