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 2023/07/17 13:24:00 UTC

[jira] [Assigned] (GROOVY-2433) Closure in base class unable to call private methods when invoked from derived class

     [ https://issues.apache.org/jira/browse/GROOVY-2433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Milles reassigned GROOVY-2433:
-----------------------------------

    Assignee: Eric Milles

> Closure in base class unable to call private methods when invoked from derived class
> ------------------------------------------------------------------------------------
>
>                 Key: GROOVY-2433
>                 URL: https://issues.apache.org/jira/browse/GROOVY-2433
>             Project: Groovy
>          Issue Type: Sub-task
>          Components: groovy-runtime
>            Reporter: David Clark
>            Assignee: Eric Milles
>            Priority: Major
>         Attachments: testcase.zip
>
>
> Closures defined in base classes are not able to access private methods in the same base class, when invoked from a derived class.  Java visibility rules imply that this should not happen.  When the private methods are made public, the error disappears.  Also, when the closure is converted to a method the problem also disappears.  Compiling and running the TestCase class included (along with Base class) should reproduce the problem.  It's easier to see the problem than to try and describe it.



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