[
https://issues.apache.org/jira/browse/GROOVY-11853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles resolved GROOVY-11853.
----------------------------------
Fix Version/s: 6.0.0-alpha-1
Resolution: Information Provided
Re-open if any of these scenarios require runtime support. I wanted the
breaking changes documented in the release notes.
> breaking changes for inner class methodMissing and propertyMissing protocol
> ---------------------------------------------------------------------------
>
> Key: GROOVY-11853
> URL: https://issues.apache.org/jira/browse/GROOVY-11853
> Project: Groovy
> Issue Type: Bug
> Components: groovy-runtime
> Affects Versions: 6.0.0-alpha-1
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Major
> Labels: breaking
> Fix For: 6.0.0-alpha-1
>
>
> There were some scenarios that allowed access to an object's outer class
> members that no longer work under the GROOVY-11823 redesign.
> 1) access to outer class field through object expression:
> {code:groovy}
> class Outer {
> class Inner {
> }
> def p = "p"
> }
> def o = new Outer()
> def i = new Outer.Inner(o)
> println i.p
> {code}
> 2) outer class invokeMethod or other such MOP overloads:
> {code:groovy}
> String string = new Object() {
> @Override String toString() {
> // outer class is a Script and overrides getProperty, setProperty and
> invokeMethod
> dynamicVariable = "foo"
> }
> }
> println dynamicVariable
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)