[ https://issues.apache.org/jira/browse/GROOVY-7520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher closed GROOVY-7520. ------------------------------------- > 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 > Affects Versions: 2.4.4 > Reporter: Keegan Witt > Assignee: 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)