Github user blackdrag commented on the pull request:
https://github.com/apache/groovy/commit/b58342060031f517d6ba42a64dd3ddf392e820bb#commitcomment-25679530
In src/main/groovy/lang/Binding.java:
In src/main/groovy/lang/Binding.java on line 99:
I think it is correct. An alternative way would be:
MetaProperty property = getMetaClass().getMetaProperty(property);
if (property != `null)` {
return property.getProperty(this);
} else {
return getVariable(property);
}---
