[ 
https://issues.apache.org/jira/browse/GROOVY-6097?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17453758#comment-17453758
 ] 

Eric Milles commented on GROOVY-6097:
-------------------------------------

https://github.com/apache/groovy/commit/7846085b07732a2370f76a22f2d350ea3ea9be0f

> Using super.propertyName gives a MissingMethodException when the property is 
> a boolean and uses the "isPropertyName" naming convention.
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-6097
>                 URL: https://issues.apache.org/jira/browse/GROOVY-6097
>             Project: Groovy
>          Issue Type: Bug
>          Components: groovy-jdk
>    Affects Versions: 2.1.3
>         Environment: Windows 7, Java 1.6, Groovy 2.1.3
>            Reporter: Brett Borchardt
>            Assignee: Eric Milles
>            Priority: Major
>         Attachments: MyClass.groovy
>
>
> See the following code:
> {code:title=MyClass.groovy}
> class MyClass extends MySuperClass {
>     public static void main(String[] args) {
>         new MyClass()
>     }
>     MyClass() {
>         println booleanProp // prints true
>         println this.booleanProp // prints true
>         println super.booleanProp // MissingMethodException
>     }
> }
> class MySuperClass {
>     boolean booleanProp
>     boolean isBooleanProp() {
>         return true
>     }
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to