Bug 176364 - [assist] missing return and continue proposals within switch statements
Summary: [assist] missing return and continue proposals within switch statements
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.3 M6   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-05 08:03 EST by Maxime Daniel CLA
Modified: 2007-03-20 10:24 EDT (History)
0 users

See Also:


Attachments
Proposed fix (22.04 KB, patch)
2007-03-07 11:40 EST, David Audel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.