It looks like an uncontrolled situation in the compiler. When decompiling, the extension class gets an empty constructor. Tests should cover you, as this situation does not work at runtime.
I do not know how to use this class; I tried the ways I know:
abstract class AbstractClass { String string Integer integer AbstractClass(String string, Integer integer) { this.string = string this.integer = integer } } class ImplClass extends AbstractClass { }
None of them worked at runtime, but compiled perfectly ;-). The situation is more related to a compilation error and a runtime error. Maybe filling in JIRA?
On the other hand, if you need to inherit constructors, you can go to @groovy.transfom.InheritConstructors in an expandable class. This way you will have constructors without having to explicitly call super() .
source share