You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2025/06/06 15:37:00 UTC
[jira] [Updated] (GROOVY-11694) SC: implicit-this call to static method of super class from another package
[ https://issues.apache.org/jira/browse/GROOVY-11694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles updated GROOVY-11694:
---------------------------------
Summary: SC: implicit-this call to static method of super class from another package (was: SC: unqualified call to static method of super class from another package)
> 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)