You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Shil Sinha (JIRA)" <ji...@apache.org> on 2015/12/29 16:23:49 UTC

[jira] [Resolved] (GROOVY-7036) An interface implementation (override) with a method including a default parameter value does not compile

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

Shil Sinha resolved GROOVY-7036.
--------------------------------
       Resolution: Fixed
         Assignee: Shil Sinha
    Fix Version/s: 2.4.6

> An interface implementation (override) with a method including a default parameter value does not compile
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-7036
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7036
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 2.3.6
>         Environment: JDK 1.7.0_60
>            Reporter: Martin Ahrer
>            Assignee: Shil Sinha
>             Fix For: 2.4.6
>
>
> A complete (gradle based) project to demonstrate the problem has been provided at https://github.com/MartinAhrer/bug-groovy-2.3-override.
> {code}
> interface TemplatedInterface<T> {
>     T execute(Map argument)
> }
> class TemplatedInterfaceImplementation implements TemplatedInterface<String>{
>     // This won't compile with groovy 2.3.x when adding a default argument value
>     @Override
>     String execute(Map argument = [:]) {
>         return null
>     }
> }
> {code}
> This kind of relates to GROOVY-6654.



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