Bug 46470

Summary: Wrong completion after a switch
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: bkotch
Version: 3.0   
Target Milestone: 3.0 M6   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Frederic Fusier CLA 2003-11-12 07:23:44 EST
Simple sampleusing build I200311050952:

public class X {
	int x;

	void foo() {
		>>>Completion to bar() is available here<<<
		switch (x) {
			case 0:
				x += 1;
				break;
		}
		>>>Completion to bar() is NOT available here<<<
		if (x>10) {
			x += 2;
		}
		>>>Completion to bar() is NOT available here<<<
	}
	
	void bar() {
		>>>Completion to foo() is available here<<<
	}
}

I should be able to complete with bar() method after the end of switch block
Comment 1 David Audel CLA 2003-11-27 08:53:29 EST
Fixed and tests added.
Comment 2 Frederic Fusier CLA 2003-12-16 07:19:40 EST
Verified with build I200312160010