Details
Description
Java classes:
public interface A<T> { T[] process(); } public class B implements A<String> { @Override public String[] process() { return new String[0]; } }
Groovy class:
class C extends B { @Override String[] process() { return super.process() } }
I've got following error during compilation:
Groovy:The return type of [Ljava.lang.String; process() in temp.C is incompatible with [Ljava.lang.Object; process() in temp.B
BTW, I can't convert classes A and B to Groovy because it's library's classes (not mine).
Attachments
Issue Links
- is duplicated by
-
GROOVY-7849 Incompatible covariant array return type
- Closed