Bug 30907

Summary: Code assist doesn't work in first case statement of a switch statement
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: P3    
Version: 2.1   
Target Milestone: 2.1 M5   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Olivier Thomann CLA 2003-02-04 15:51:53 EST
Using 0129, try the following test case:
1) Create a new Java Project P.
2) In P, create the following interface:
public interface Inter {

	int INT = 0;
	int FLOAT = 1;
}
3) In P, create the following class:
public class A {
	
	public static void main(String[] args) {
		int i = 0;
		switch(i) {
			case Int<cursor here>
						
		}
	}

}
Try to use the code assist where <cursor here> is located. You won't have any
completion. Now replace:
			case Int<cursor here>
with:
			case Inter.INT:
			case Int<cursor here>:

And using the code assist again, you will got some completions. I should be able
to get the same completions the first time. This is pretty annoying.

From my perspective, this needs to be fixed for 2.1.
Comment 1 David Audel CLA 2003-02-05 05:29:04 EST
Fixed.
Comment 2 David Audel CLA 2003-02-06 11:17:55 EST
Verified.