Details

    • Type: Wish Wish
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.3, 1.8-beta-1
    • Component/s: None
    • Labels:
      None

      Description

      Describe a class

      class Foo {
        static def getBar(){}
        static def setBar(def bar){}
      }
      

      and a script

      import static Foo.bar
      
      print bar
      print getBar()
      

      Now 'print getBar()' throws MissingMethodException.
      IMHO 'getBar()' should be resolved to Foo.getBar() without explicit import

      The same thing is with setters and aliased imports.

      import static Foo.bar
      
      setBar(2)
      
       
      import static Foo.bar as baz
      
      setBaz(2)
      print getBaz()
      
      import static Foo.getBar
      
      print bar
      
      import static Foo.setBar
      
      bar = 2
      

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Paul King
              Reporter:
              Maxim Medvedev
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development