Eric Milles created GROOVY-11694:
------------------------------------

             Summary: SC: unqualified call to static method of super class from 
another package
                 Key: GROOVY-11694
                 URL: https://issues.apache.org/jira/browse/GROOVY-11694
             Project: Groovy
          Issue Type: Bug
          Components: Static compilation
    Affects Versions: 5.0.0-beta-1
            Reporter: Eric Milles
            Assignee: Eric Milles


Consider the following:
{code:groovy}
package p
abstract class A {
  protected static pm() {
  }
}
{code}

{code:groovy}
package q
@groovy.transform.CompileStatic
class C extends p.A {
  void test() {
    pm()
  }
}
{code}

Compiler emits error: "Cannot access method: pm() of class: p.A"



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to