[ 
https://issues.apache.org/jira/browse/GROOVY-11694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956754#comment-17956754
 ] 

ASF GitHub Bot commented on GROOVY-11694:
-----------------------------------------

daniellansun merged PR #2251:
URL: https://github.com/apache/groovy/pull/2251




> 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)

Reply via email to