Sergei Egorov created GROOVY-7620:
-------------------------------------

             Summary: No error if abstract getter is not implemented but static 
field exists
                 Key: GROOVY-7620
                 URL: https://issues.apache.org/jira/browse/GROOVY-7620
             Project: Groovy
          Issue Type: Bug
          Components: Compiler
    Affects Versions: 2.4.5
            Reporter: Sergei Egorov


Code example:
{code:java}
​abstract class A {
   abstract Object getFoo();

   void test() {
       println getFoo();
   }
}

class B extends A {
   static Object foo;
}

new B().test()
{code}

CompileStatic will not report an error as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to