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

Paul King closed GROOVY-6097.
-----------------------------

> 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
>             Fix For: 4.0.0-rc-2
>
>         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