Bug 176364

Summary: [assist] missing return and continue proposals within switch statements
Product: [Eclipse Project] JDT Reporter: Maxime Daniel <maxime_daniel>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: 3.3 M6   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Proposed fix none

Description Maxime Daniel CLA 2007-03-05 08:03:28 EST
I20070228-0930

The following test case should propose return:
public class X {
  void foo() {
    switch (i) {
      case 0:
    	retu<Ctrl space>
    	break;
    }
  }
}


and the following test case should propose continue:
public class X {
  void foo() {
    for (int i = 0; i < 1; i++) {
      switch (i) {
    	case 0:
    	  conti<Ctrl space>
    	  break;
      }
    }
  }
}
Comment 1 David Audel CLA 2007-03-07 11:40:51 EST
Created attachment 60381 [details]
Proposed fix
Comment 2 David Audel CLA 2007-03-07 11:44:48 EST
Released for 3.3M6.

Test added 
  CompletionTests#testCompletionKeywordContinue5
  CompletionTests#testCompletionKeywordReturn7
Comment 3 Maxime Daniel CLA 2007-03-20 10:24:57 EDT
Verified for 3.3 M6 using build I20070320-0010.