[ https://issues.apache.org/jira/browse/GROOVY-11694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956633#comment-17956633 ]
ASF GitHub Bot commented on GROOVY-11694: ----------------------------------------- eric-milles opened a new pull request, #2251: URL: https://github.com/apache/groovy/pull/2251 `StaticMethodCallExpressionTransformer` creates "Type.staticMethod(arguments)" and later `StaticInvocationWriter` gets type of receiver expression as `Class<Type>`. Use `Type` for access checks. > SC: implicit-this 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 > Priority: Major > > 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)