Bug 46470 - Wrong completion after a switch
Summary: Wrong completion after a switch
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M6   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-12 07:23 EST by Frederic Fusier CLA
Modified: 2003-12-16 07:19 EST (History)
1 user (show)

See Also:


Attachments

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