eric-milles opened a new pull request #1307:
URL: https://github.com/apache/groovy/pull/1307
`findClassMember`
- java.lang.Object has no fields, no properties, no interfaces, no isX
methods, no setX methods and the only getX method is `getClass`, but "class"
cannot be a free-standing variable name according to the parser
- it is possible to make bean-style reference to abstract method:
```groovy
abstract class A {
abstract getX()
void test() {
println x
}
}
```
`getPropertyName`
- putting the cached class on the right side of `equals` triggers reference
check instead of name string check for primitives
```java
public boolean equals(Object that) {
if (that == this) return true;
if (!(that instanceof ClassNode)) return false;
if (redirect != null) return redirect.equals(that); // go here so
"that == this" check works for void, boolean, Object, etc.
return (((ClassNode) that).getText().equals(getText()));
}
```
https://issues.apache.org/jira/browse/GROOVY-9601
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]