[
https://issues.apache.org/jira/browse/GROOVY-2433?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles resolved GROOVY-2433.
---------------------------------
Resolution: Fixed
https://github.com/apache/groovy/commit/0738ed1049599db55b44dac64b4135f592262ca6
> 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)