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/09/15 03:09:00 UTC

[jira] [Resolved] (GROOVY-8496) Can't call default getProperty() implementation from Java subclass

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

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

Fixed by GROOVY-8495 but an additional test case added to cover this case.

> Can't call default getProperty() implementation from Java subclass
> ------------------------------------------------------------------
>
>                 Key: GROOVY-8496
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8496
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Daniil Ovchinnikov
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 3.0.0-alpha-4, 2.5.3
>
>
> {code:title=GroovyClass.groovy}
> class GroovyClass {}
> {code}
> {code:title=JavaClass.java}
> class JavaClass extends GroovyClass { 
>     @Override
>     public Object getProperty(String propertyName) {
>         return super.getProperty(propertyName); 
>         // error: cannot find symbol: method getProperty(String)
>     }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)