You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Keegan Witt (JIRA)" <ji...@apache.org> on 2015/07/24 18:36:04 UTC

[jira] [Updated] (GROOVY-7520) Improve unimplemented message for abstract methods

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

Keegan Witt updated GROOVY-7520:
--------------------------------
    Fix Version/s: 2.4.5

> Improve unimplemented message for abstract methods
> --------------------------------------------------
>
>                 Key: GROOVY-7520
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7520
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>            Reporter: Keegan Witt
>             Fix For: 2.4.5
>
>
> GROOVY-7081 caused the message to change for scenarios like
> {code:java}
> abstract class Module {
>     abstract String getModuleName()
> }
> class Master extends Module {
>     String title
>     String track
> }    
> def master = new Master(title: "Hello", track: "1")
> println master.title
> {code}
> The message went from
> {quote}Can't have an abstract method in a non-abstract class. The class 'Master' must be declared abstract or the method 'java.lang.String getModuleName()' must be implemented.{quote}
> to
> {quote}Abstract method 'java.lang.String getModuleName()' is not implemented but a method of the same name but different return type is defined: method 'java.lang.String getModuleName()'{quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)