View | Details | Raw Unified | Return to bug 135602 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/compiler/regression/FlowAnalysisTest.java (+25 lines)
Lines 689-694 Link Here
689
		"The local variable l may not have been initialized\n" + 
689
		"The local variable l may not have been initialized\n" + 
690
		"----------\n");
690
		"----------\n");
691
}
691
}
692
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=135602
693
public void test025() {
694
	this.runConformTest(
695
		new String[] {
696
			"X.java",
697
			"public class X {\n" + 
698
			"	public static void main(String[] args) {\n" + 
699
			"		int loops = 0;\n" + 
700
			"		do {\n" + 
701
			"			System.out.print(loops);\n" + 
702
			"			if (loops > 2) {\n" + 
703
			"				return;\n" + 
704
			"			}\n" + 
705
			"			if (loops < 4) {\n" + 
706
			"				++loops;\n" + 
707
			"				continue;\n" + 
708
			"			}\n" + 
709
			"		} while (false);\n" + 
710
			"		System.out.println(\"SUCCESS\");\n" + 
711
			"	}\n" + 
712
			"}"
713
		},
714
		"0SUCCESS");
715
}
716
692
public static Class testClass() {
717
public static Class testClass() {
693
	return FlowAnalysisTest.class;
718
	return FlowAnalysisTest.class;
694
}
719
}

Return to bug 135602