Bug 97396 - Internal compiler error related to switch statement
Summary: Internal compiler error related to switch statement
Status: VERIFIED DUPLICATE of bug 97247
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 RC2   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-31 04:14 EDT by Petr Lindovsky CLA
Modified: 2005-06-08 03:19 EDT (History)
1 user (show)

See Also:


Attachments
Build log (6.95 KB, text/plain)
2005-05-31 04:17 EDT, Petr Lindovsky CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Lindovsky CLA 2005-05-31 04:14:20 EDT
I'm getting an "Internal compiler error" (see attachment) with 3.1 RC1 when 
compiling a file with the following switch statement over enum values:

switch (tableConfigType) {
case AGGREGATION:
	return AggregationDefConfigurationManager.getManagerFor(url);
case COLUMN:			
    return ColumnDefConfigurationManager.getManagerFor(url);
case FILTER:
    return FilterDefConfigurationManager.getManagerFor(url);
case HIGHLIGHTING:
    return HighlightingDefConfigurationManager.getManagerFor(url);
case SORTING:
    return SortingDefConfigurationManager.getManagerFor(url);
default:
	assert false;
}

When I replace this with the following, the compilation finishes correctly:

if (tableConfigType == TableConfigType.AGGREGATION) {
	return AggregationDefConfigurationManager.getManagerFor(url);
} else if (tableConfigType == TableConfigType.COLUMN) {
    return ColumnDefConfigurationManager.getManagerFor(url);
} else if (tableConfigType == TableConfigType.FILTER) {
    return FilterDefConfigurationManager.getManagerFor(url);
} else if (tableConfigType == TableConfigType.HIGHLIGHTING) {
    return HighlightingDefConfigurationManager.getManagerFor(url);
} else if (tableConfigType == TableConfigType.SORTING) {
    return SortingDefConfigurationManager.getManagerFor(url);
} else {
	assert false;
}
Comment 1 Petr Lindovsky CLA 2005-05-31 04:17:04 EDT
Created attachment 22007 [details]
Build log
Comment 2 Philipe Mulet CLA 2005-05-31 04:51:40 EDT
Olivier - pls double check

*** This bug has been marked as a duplicate of 97247 ***
Comment 3 Olivier Thomann CLA 2005-05-31 08:16:51 EDT
Indeed. This is a duplicate.
Could you please try next build and confirm this is fixing this issue?
Comment 4 Petr Lindovsky CLA 2005-06-02 02:27:09 EDT
I can confirm that this problem is fixed in eclipse-SDK-N20050602-0010-win32.
Comment 5 Frederic Fusier CLA 2005-06-08 03:19:22 EDT
Thanks for having verified it