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

        Peter Niederwieser created issue -
        Roshan Dawrani made changes -
        Field Original Value New Value
        Assignee Roshan Dawrani [ roshandawrani ]
        Roshan Dawrani made changes -
        Fix Version/s 1.6.3 [ 15251 ]
        Resolution Fixed [ 1 ]
        Fix Version/s 1.7-beta-1 [ 14014 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12732417 ] Default workflow, editable Closed status [ 12744215 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12970218 ] Default workflow, editable Closed status [ 12977999 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development