You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (JIRA)" <ji...@apache.org> on 2018/12/13 10:06:04 UTC

[jira] [Closed] (GROOVY-8797) VariableScopeVisitor.getPropertyName does not check for "isser" style method

     [ https://issues.apache.org/jira/browse/GROOVY-8797?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King closed GROOVY-8797.
-----------------------------

> 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.4.15, 3.0.0-alpha-3, 2.5.2
>            Reporter: Eric Milles
>            Assignee: Paul King
>            Priority: Minor
>             Fix For: 3.0.0-alpha-4, 2.5.3
>
>
> 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)