Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Consider the following:
package p; public interface A { default void m() {} } public interface B { default void m() {} }
class C implements p.A, p.B { void test() { m() } }
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.
Attachments
Issue Links
- is duplicated by
-
GROOVY-11493 RuntimeError when implementing interfaces with conflicting default methods
- Closed