Bug 89982 - [1.5][compiler] Internal failure during missing enum case diagnosis
Summary: [1.5][compiler] Internal failure during missing enum case diagnosis
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-01 11:36 EST by Frederic Fusier CLA
Modified: 2005-04-01 13:13 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 Frederic Fusier CLA 2005-04-01 11:36:36 EST
Build 20050331

Following code causes internal compiler failure:

package enums;

public class E {
	enum Numbers { ONE, TWO, THREE }
	static final String BLANK = "    ";
	void foo(Colors color) {
		switch (color) {
			case BLUE:
			case RED:
				break;
		} 
	}
}
/**
 * Enumeration of some basic colors.
 */
enum Colors {
	BLACK,
//	BLUE,
	WHITE,
	RED  
}
Comment 1 Philipe Mulet CLA 2005-04-01 11:50:12 EST
Added EnumTest#test097-098.

Support wasn't handling scenario where some case labels could not be resolved.
Comment 2 Philipe Mulet CLA 2005-04-01 11:50:23 EST
Fixed
Comment 3 Frederic Fusier CLA 2005-04-01 11:52:11 EST
I forgot to precise that to get this internal error you need to set compiler
option "Not all enum constants covered on 'switch'" to warning or error...
Comment 4 Olivier Thomann CLA 2005-04-01 13:13:17 EST
Verified in I20050401-1205