Community
Participate
Working Groups
Build 3.4M4 In following code, no proposal is offered for super interface completion: where I would expect OtherSubInterface to be proposed. public class X { public static void testCovariant(SubInterface sub1, SubInterface sub2) { SubInterface sub3 = sub1.and(sub2); } public interface SuperInterface<E> { public Number getNumber(); public SuperInterface<E> and(SuperInterface<E> a); } public interface SubInterface extends SuperInterface, Other<CODEASSIST HERE> { public Integer getNumber(); public SubInterface and(SuperInterface s); } public interface OtherSubInterface<U> extends SuperInterface<U> { public OtherSubInterface<U> and(SuperInterface<U> a); } }
Other similar case: public class X { public static void testCovariant(CombinedSubInterface sub1, SubInterface sub2) { SubInterface sub3 = sub1.and(sub2); } public interface SuperInterface<E> { public Number getNumber(); public SuperInterface<E> and(SuperInterface<E> a); } public interface SubInterface extends SuperInterface { public Integer getNumber(); public SubInterface and(SuperInterface s); } public interface CombinedSubInterface extends OtherSubInterface {} public interface OtherSubInterface extends Sub<CODEASSIST HERE>Interface { public OtherSubInterface and(SuperInterface a); } } no proposal offered
Created attachment 87510 [details] Eclipse preferences
Wasn't able to reproduce in a runtime workbench using HEAD. But was able to reproduce in a different project with small testcase.
Feels similar to bug 210681
*** This bug has been marked as a duplicate of bug 210681 ***
Verified for 3.4M5 using I20080204-0010.