Bug 30907 - Code assist doesn't work in first case statement of a switch statement
Summary: Code assist doesn't work in first case statement of a switch statement
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 critical (vote)
Target Milestone: 2.1 M5   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-04 15:51 EST by Olivier Thomann CLA
Modified: 2003-02-06 11:17 EST (History)
0 users

See Also:


Attachments

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