Community
Participate
Working Groups
Build Identifier: 20110615-0604 The following inheritance cannot be compiled by Indigo: The type ElementCollectorOp must implement the inherited abstract method IOperation2<List<A>,IProcess,List<A>>.execute(List<A>, IProcess). The classes look like this (simplified to the basic problem): public interface IOperation2 <A,B,R> { public R execute(A arg1, B arg2); } public interface IListTransformation2 <A,B,R> extends IOperation2<List<A>,B,List<R>> { } public abstract class ProcessObjectCollectorOp <A> implements IListTransformation2<A, IProcess, A> { @Override public final List<A> execute(List<A> list, IProcess process) { return null; } protected abstract void collect(List<A> list, ZObject zObj, IProcess sub); } public class ElementCollectorOp extends ProcessObjectCollectorOp<Pair<IProcess, ZObject>> { public ElementCollectorOp() { } @Override protected void collect(List<Pair<IProcess, ZObject>> list, ZObject zObj, IProcess sub) { // do something } } Reproducible: Always
code compiles with Helios and javac from java 1.5. compliance level in indigo (and helios) set to 1.6 and used jdk is oracle/sun 1.6.24
I'll follow up.
(In reply to comment #0) > Build Identifier: 20110615-0604 > > The following inheritance cannot be compiled by Indigo: The type > ElementCollectorOp must implement the inherited abstract method > IOperation2<List<A>,IProcess,List<A>>.execute(List<A>, IProcess). The classes > look like this (simplified to the basic problem): > Can you please provide a full example that I can feed to JDK 1.5 ? The snippet as it is provided does not compile with JDK 1.5.
(In reply to comment #3) > Can you please provide a full example that I can feed to JDK 1.5 ? > The snippet as it is provided does not compile with JDK 1.5. Hello, Have you had a chance to look into this request ? Thanks.
Resolved as WORKSFORME. If this is a real issue, please reopen with a full test case.
Verified for 3.8M4 using build I20111202-0800.
Sorry, I was stuck with other things. I made some tests with the code I sent and tested as well using a helios workspace (which always compiled the sample successful) with the code sample with Indigo. Sometimes after several refresh and cleans, it compiled. The after one change in the file, it compiled not. But I was not able to find a pattern or reproducible procedure to trigger the problem. So I changed back to Helios and tried again Indigo SR1. And now everything is fine and works. So, resolved for me too