Eric Milles created GROOVY-8797:
-----------------------------------
Summary: VariableScopeVisitor.getPropertyName does not check for
"isser" style method
Key: GROOVY-8797
URL: https://issues.apache.org/jira/browse/GROOVY-8797
Project: Groovy
Issue Type: Bug
Affects Versions: 2.5.2, 3.0.0-alpha-3, 2.4.15
Reporter: Eric Milles
Consider the following:
{code:groovy}
class C {
Object getFoo() {}
boolean isBar() {}
void setBaz(val) {}
void method() {
foo
bar
baz
}
}
{code}
{{VariableScopeVisitor}} returns a {{PropertyNode}} from {{findClassMember}}
for {{foo}} and {{baz}}. However, the {{bar}} reference is seen as a
{{MethodNode}}. {{VariableScopeVisitor.getPropertyName}} only checks for "get"
and "set". Could it check for "is" and {{boolean}} return?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)