[
https://issues.apache.org/jira/browse/GROOVY-6335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-6335.
-----------------------------
> MissingPropertyException when private static property is used inside a nested
> closure and called from a child class
> -------------------------------------------------------------------------------------------------------------------
>
> Key: GROOVY-6335
> URL: https://issues.apache.org/jira/browse/GROOVY-6335
> Project: Groovy
> Issue Type: Bug
> Components: groovy-runtime
> Reporter: Marcin Erdmann
> Assignee: Eric Milles
> Priority: Major
> Fix For: 5.0.0-alpha-1
>
>
> The folowing throws a MissingPropertyException:
> {code}
> import groovy.util.logging.*
> @Log
> class A {
> void logSth() {
> 2.times { 1.times { log.info 'sth' } }
> }
> }
> class B extends A {}
> new B().logSth()
> {code}
> Note that exception is not thrown if the method is called on the parent class
> ({{new A().logSth()}}) and if log property is accessed from a non-nested
> closure.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)