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

Eric Milles commented on GROOVY-11560:
--------------------------------------

The description here misses the override of m() in the concrete type, which is 
what was missed from the first ticket. 

> Invalid compiler error for class which overrides a method having duplicate 
> default definitions from interfaces
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-11560
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11560
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Eric Milles
>            Assignee: Daniel Sun
>            Priority: Major
>              Labels: default-methods
>
> Consider the following:
> {code:java}
> package p;
> public interface A {
>   default void m() {}
> }
> public interface B {
>   default void m() {}
> }
> {code}
> {code:groovy}
> class C implements p.A, p.B {
>   void test() {
>     m()
>   }
> }
> {code}
> {{groovyc}} does not detect that {{m()}} must be overridden to resolve the 
> conflict.  {{javac}} does produce an error, but it is still possible to 
> import the interfaces from libraries and not trigger joint compilation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to