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

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/compiler/regression/SwitchTest.java (-11 / +9 lines)
Lines 1-4 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2005, 2012 IBM Corporation and others.
2
 * Copyright (c) 2005, 2014 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
Lines 1464-1468 Link Here
1464
		"	public static void main(String[] argv) {\n" +
1464
		"	public static void main(String[] argv) {\n" +
1465
		"		String dispatcher = \"\u0000\";\n" +
1465
		"		String dispatcher = \"\u0000\";\n" +
1466
		"		for (int i = 0; i < 100; i++) {\n" +
1466
		"		outer: for (int i = 0; i < 100; i++) {\n" +
1467
		"			switch (dispatcher) {\n" +
1467
		"			switch (dispatcher) {\n" +
1468
		"			case \"\u0000\":\n" +
1468
		"			case \"\u0000\":\n" +
Lines 1483-1487 Link Here
1483
		"			default:\n" +
1483
		"			default:\n" +
1484
		"				System.out.println(\"Default\");\n" +
1484
		"				System.out.println(\"Default\");\n" +
1485
		"				System.exit(0);\n" +
1485
		"				break outer;\n" +
1486
		"			case \"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\":\n" +
1486
		"			case \"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\":\n" +
1487
		"				System.out.print(\"8 \");\n" +
1487
		"				System.out.print(\"8 \");\n" +
Lines 1520-1524 Link Here
1520
		"	public static void main(String[] argv) {\n" +
1520
		"	public static void main(String[] argv) {\n" +
1521
		"		String dispatcher = \"\u0000\";\n" +
1521
		"		String dispatcher = \"\u0000\";\n" +
1522
		"		while(true) {\n" +
1522
		"		outer: while(true) {\n" +
1523
		"			switch (dispatcher) {\n" +
1523
		"			switch (dispatcher) {\n" +
1524
		"			case \"\u0000\":\n" +
1524
		"			case \"\u0000\":\n" +
Lines 1544-1548 Link Here
1544
		"			default:\n" +
1544
		"			default:\n" +
1545
		"				System.out.println(\"Default\");\n" +
1545
		"				System.out.println(\"Default\");\n" +
1546
		"				System.exit(0);\n" +
1546
		"				break outer;\n" +
1547
		"			case \"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\":\n" +
1547
		"			case \"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\":\n" +
1548
		"				System.out.print(\"8 \");\n" +
1548
		"				System.out.print(\"8 \");\n" +
Lines 1722-1726 Link Here
1722
		"    }\n" +
1722
		"    }\n" +
1723
		"    public static void main(String [] args) {\n" +
1723
		"    public static void main(String [] args) {\n" +
1724
		"    	while (true) {\n" +
1724
		"    	outer: while (true) {\n" +
1725
		"    		String s = null;\n" +
1725
		"    		String s = null;\n" +
1726
		"    		switch(s = dispatcher()) {\n" +
1726
		"    		switch(s = dispatcher()) {\n" +
Lines 1740-1744 Link Here
1740
		"    				break;\n" +
1740
		"    				break;\n" +
1741
		"    		default: System.out.print(\"DONE\");\n" +
1741
		"    		default: System.out.print(\"DONE\");\n" +
1742
		"    				System.exit(0);\n" +
1742
		"    				break outer;\n" +
1743
		"    		}\n" +
1743
		"    		}\n" +
1744
		"    	}\n" +
1744
		"    	}\n" +
Lines 1772-1776 Link Here
1772
		"    }\n" +
1772
		"    }\n" +
1773
		"    public static void main(String [] args) {\n" +
1773
		"    public static void main(String [] args) {\n" +
1774
		"    	while (true) {\n" +
1774
		"    	outer: while (true) {\n" +
1775
		"    		String s = null;\n" +
1775
		"    		String s = null;\n" +
1776
		"    		switch(s = dispatcher()) {\n" +
1776
		"    		switch(s = dispatcher()) {\n" +
Lines 1781-1785 Link Here
1781
		"    		case \"0\": break;\n" +
1781
		"    		case \"0\": break;\n" +
1782
		"    		default: System.out.print(\"DONE\");\n" +
1782
		"    		default: System.out.print(\"DONE\");\n" +
1783
		"    				System.exit(0);\n" +
1783
		"    				break outer;\n" +
1784
		"    		}\n" +
1784
		"    		}\n" +
1785
		"    	}\n" +
1785
		"    	}\n" +
Lines 1846-1854 Link Here
1846
		"    				break;\n" +
1846
		"    				break;\n" +
1847
		"    		default: System.out.print(\"DONE\");\n" +
1847
		"    		default: System.out.print(\"DONE\");\n" +
1848
		"    				System.exit(0);\n" +
1849
		"    				 break junk;\n" +
1848
		"    				 break junk;\n" +
1850
		"    		}\n" +
1849
		"    		}\n" +
1851
		"    	}\n" +
1850
		"    	}\n" +
1852
		"   	System.out.println(\"Broken\");\n" +
1853
		"    }\n" +
1851
		"    }\n" +
1854
		"}\n",
1852
		"}\n",

Return to bug 414653