Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.6
-
None
Description
When presented with a Groovy interface that has a default method (shiny and new!) the stub generator omits the "default" part, leading to compilation failures in Java classes due to unimplemented abstract methods.
interface HasDefaultMethod { default void method() { } }
import java.lang.*; import java.util.*; import java.io.*; import java.net.*; import groovy.lang.*; import groovy.util.*; @groovy.transform.Trait() public interface HasDefaultMethod { ; void method(); }
(The stray semicolon is also odd but doesn't appear to be pathological.)
Attachments
Issue Links
- is related to
-
GROOVY-8299 Generate bytecode for interface with default, private and static methods
- Closed
- links to