Bug 110544

Summary: [compiler] warning on unreachable code in for updater statement
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: jerome_lanneluc
Version: 3.1   
Target Milestone: 3.5 M4   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Adam Kiezun CLA 2005-09-25 17:59:49 EDT
3.1
void foo(int x, int[] array) {
	for (int i = 0; 
	     i < array.length; 
	     i++) {//dead code
		if (x == array[i])
			return;
		else
			break;
	}
}

the updater code is dead - the loop never actually loops
Comment 1 Philipe Mulet CLA 2007-04-02 07:20:51 EDT

*** This bug has been marked as a duplicate of bug 48399 ***
Comment 2 Philipe Mulet CLA 2008-11-21 05:18:17 EST
Added FlowAnalysisTest#test057
Comment 3 Jerome Lanneluc CLA 2008-12-09 04:45:25 EST
Verified for 3.5M4 using I20081209-0100