groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GROOVY-7520) Improve unimplemented message for abstract methods
Date Thu, 30 Jul 2015 19:36:04 GMT

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

ASF GitHub Bot commented on GROOVY-7520:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-groovy/pull/71


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

Mime
View raw message