Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 84285

Summary: content assist generates method with missing body
Product: [Eclipse Project] JDT Reporter: Rafael Chaves <eclipse>
Component: UIAssignee: Tobias Widmer <tobias_widmer>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: martinae
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Rafael Chaves CLA 2005-02-02 16:39:43 EST
i20050201

(maybe related to bug 84283)

Code assist will generate only the method signature (but not a body) when
overriding methods defined by interfaces indirectly implemented.

For the following code:

interface X {
  void m1();
}

interface Y extends X {
  void m2();
}

public class Simple implements Y {
}

Using code assist to generate method stubs works fine for "m2" (directly
inherited) but generates only the signature for "m1" (indirectly inherited):

public class Simple implements Y {
	public void m2() {
		// TODO Auto-generated method stub
		
	}
	public void m1()
}
Comment 1 Dirk Baeumer CLA 2005-02-03 04:08:33 EST
Tobias, can you please investigate. You touched that code lately.
Comment 2 Martin Aeschlimann CLA 2005-02-03 04:32:23 EST
is related to bug 80782

*** This bug has been marked as a duplicate of 80782 ***