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

Paul King resolved GROOVY-8797.
-------------------------------
       Resolution: Fixed
         Assignee: Paul King
    Fix Version/s: 2.5.3
                   3.0.0-alpha-4

Merged, thanks. For your suggested {{findClassMember}} improvement I was unable 
to set the type of the property but I did the other changes. For the type, it 
won't be accurate for non-JavaBean set multi-methods, e.g. {{setContentView}} 
in the following test:

https://github.com/apache/groovy/blob/master/src/test/groovy/transform/stc/FieldsAndPropertiesSTCTest.groovy#L638


> 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)

Reply via email to