Bug 216128 - [assist] No completion for interface
Summary: [assist] No completion for interface
Status: VERIFIED DUPLICATE of bug 210681
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M5   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-22 07:08 EST by Philipe Mulet CLA
Modified: 2008-02-05 07:10 EST (History)
0 users

See Also:


Attachments
Eclipse preferences (21.10 KB, application/octet-stream)
2008-01-22 07:48 EST, Philipe Mulet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2008-01-22 07:08:34 EST
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);
	}
}
Comment 1 Philipe Mulet CLA 2008-01-22 07:20:39 EST
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
Comment 2 Philipe Mulet CLA 2008-01-22 07:48:23 EST
Created attachment 87510 [details]
Eclipse preferences
Comment 3 Philipe Mulet CLA 2008-01-22 07:49:22 EST
Wasn't able to reproduce in a runtime workbench using HEAD. But was able to reproduce in a different project with small testcase.
Comment 4 Philipe Mulet CLA 2008-01-22 07:51:13 EST
Feels similar to bug 210681
Comment 5 David Audel CLA 2008-01-22 07:58:06 EST

*** This bug has been marked as a duplicate of bug 210681 ***
Comment 6 Frederic Fusier CLA 2008-02-05 07:10:21 EST
Verified for 3.4M5 using I20080204-0010.