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

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/compiler/regression/EnumTest.java (-2 / +2 lines)
Lines 1405-1411 Link Here
1405
		"----------\n" + 
1405
		"----------\n" + 
1406
		"1. ERROR in X.java (at line 4)\n" + 
1406
		"1. ERROR in X.java (at line 4)\n" + 
1407
		"	super();\n" + 
1407
		"	super();\n" + 
1408
		"	^^^^^^^\n" + 
1408
		"	^^^^^^^^\n" + 
1409
		"Cannot invoke super constructor from enum constructor X()\n" + 
1409
		"Cannot invoke super constructor from enum constructor X()\n" + 
1410
		"----------\n"
1410
		"----------\n"
1411
	);
1411
	);
Lines 1759-1765 Link Here
1759
		"----------\n" + 
1759
		"----------\n" + 
1760
		"3. ERROR in com\\flarion\\test\\b\\MyClass.java (at line 15)\n" + 
1760
		"3. ERROR in com\\flarion\\test\\b\\MyClass.java (at line 15)\n" + 
1761
		"	throw new Exception();\n" + 
1761
		"	throw new Exception();\n" + 
1762
		"	^^^^^^^^^^^^^^^^^^^^^\n" + 
1762
		"	^^^^^^^^^^^^^^^^^^^^^^\n" + 
1763
		"Unhandled exception type Exception\n" + 
1763
		"Unhandled exception type Exception\n" + 
1764
		"----------\n");
1764
		"----------\n");
1765
}
1765
}
(-)src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_5.java (-6 / +6 lines)
Lines 117-123 Link Here
117
		"----------\n" + 
117
		"----------\n" + 
118
		"2. ERROR in p1\\X.java (at line 5)\n" + 
118
		"2. ERROR in p1\\X.java (at line 5)\n" + 
119
		"	while (false) System.out.println(\"unreachable\");	\n" + 
119
		"	while (false) System.out.println(\"unreachable\");	\n" + 
120
		"	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
120
		"	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
121
		"Unreachable code\n" + 
121
		"Unreachable code\n" + 
122
		"----------\n" + 
122
		"----------\n" + 
123
		"3. ERROR in p1\\X.java (at line 8)\n" + 
123
		"3. ERROR in p1\\X.java (at line 8)\n" + 
Lines 127-133 Link Here
127
		"----------\n" + 
127
		"----------\n" + 
128
		"4. ERROR in p1\\X.java (at line 9)\n" + 
128
		"4. ERROR in p1\\X.java (at line 9)\n" + 
129
		"	for (;false;) System.out.println(\"unreachable\");	\n" + 
129
		"	for (;false;) System.out.println(\"unreachable\");	\n" + 
130
		"	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
130
		"	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
131
		"Unreachable code\n" + 
131
		"Unreachable code\n" + 
132
		"----------\n"
132
		"----------\n"
133
	);
133
	);
Lines 2189-2200 Link Here
2189
		"----------\n" + 
2189
		"----------\n" + 
2190
		"1. ERROR in X.java (at line 11)\n" + 
2190
		"1. ERROR in X.java (at line 11)\n" + 
2191
		"	super(null); //1\n" + 
2191
		"	super(null); //1\n" + 
2192
		"	^^^^^^^^^^^\n" + 
2192
		"	^^^^^^^^^^^^\n" + 
2193
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2193
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2194
		"----------\n" + 
2194
		"----------\n" + 
2195
		"2. ERROR in X.java (at line 14)\n" + 
2195
		"2. ERROR in X.java (at line 14)\n" + 
2196
		"	super(new M());//2\n" + 
2196
		"	super(new M());//2\n" + 
2197
		"	^^^^^^^^^^^^^^\n" + 
2197
		"	^^^^^^^^^^^^^^^\n" + 
2198
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2198
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2199
		"----------\n" + 
2199
		"----------\n" + 
2200
		"3. ERROR in X.java (at line 14)\n" + 
2200
		"3. ERROR in X.java (at line 14)\n" + 
Lines 2229-2235 Link Here
2229
		"----------\n" + 
2229
		"----------\n" + 
2230
		"1. ERROR in X.java (at line 8)\n" + 
2230
		"1. ERROR in X.java (at line 8)\n" + 
2231
		"	super();	// ko\n" + 
2231
		"	super();	// ko\n" + 
2232
		"	^^^^^^^\n" + 
2232
		"	^^^^^^^^\n" + 
2233
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2233
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2234
		"----------\n");
2234
		"----------\n");
2235
}
2235
}
Lines 2262-2268 Link Here
2262
		"----------\n" + 
2262
		"----------\n" + 
2263
		"1. ERROR in X.java (at line 8)\n" + 
2263
		"1. ERROR in X.java (at line 8)\n" + 
2264
		"	super(new MX4());	// ko\n" + 
2264
		"	super(new MX4());	// ko\n" + 
2265
		"	^^^^^^^^^^^^^^^^\n" + 
2265
		"	^^^^^^^^^^^^^^^^^\n" + 
2266
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2266
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2267
		"----------\n" + 
2267
		"----------\n" + 
2268
		"2. ERROR in X.java (at line 8)\n" + 
2268
		"2. ERROR in X.java (at line 8)\n" + 
(-)src/org/eclipse/jdt/core/tests/compiler/regression/GenericTypeTest.java (-3 / +3 lines)
Lines 5880-5886 Link Here
5880
			"----------\n" + 
5880
			"----------\n" + 
5881
			"1. ERROR in X.java (at line 8)\n" + 
5881
			"1. ERROR in X.java (at line 8)\n" + 
5882
			"	<String,String>super(\"FAILED\");\n" + 
5882
			"	<String,String>super(\"FAILED\");\n" + 
5883
			"	               ^^^^^^^^^^^^^^^\n" + 
5883
			"	               ^^^^^^^^^^^^^^^^\n" + 
5884
			"Incorrect number of type arguments for generic constructor <T>X(T) of type X; it cannot be parameterized with arguments <String, String>\n" + 
5884
			"Incorrect number of type arguments for generic constructor <T>X(T) of type X; it cannot be parameterized with arguments <String, String>\n" + 
5885
			"----------\n");
5885
			"----------\n");
5886
	}			
5886
	}			
Lines 5906-5912 Link Here
5906
			"----------\n" + 
5906
			"----------\n" + 
5907
			"1. ERROR in X.java (at line 8)\n" + 
5907
			"1. ERROR in X.java (at line 8)\n" + 
5908
			"	<String>super(\"FAILED\");\n" + 
5908
			"	<String>super(\"FAILED\");\n" + 
5909
			"	        ^^^^^^^^^^^^^^^\n" + 
5909
			"	        ^^^^^^^^^^^^^^^^\n" + 
5910
			"The constructor X(String) of type X is not generic; it cannot be parameterized with arguments <String>\n" + 
5910
			"The constructor X(String) of type X is not generic; it cannot be parameterized with arguments <String>\n" + 
5911
			"----------\n");
5911
			"----------\n");
5912
	}			
5912
	}			
Lines 5931-5937 Link Here
5931
			"----------\n" + 
5931
			"----------\n" + 
5932
			"1. ERROR in X.java (at line 8)\n" + 
5932
			"1. ERROR in X.java (at line 8)\n" + 
5933
			"	<String>super(new X(null));\n" + 
5933
			"	<String>super(new X(null));\n" + 
5934
			"	        ^^^^^^^^^^^^^^^^^^\n" + 
5934
			"	        ^^^^^^^^^^^^^^^^^^^\n" + 
5935
			"The parameterized constructor <String>X(String) of type X is not applicable for the arguments (X)\n" + 
5935
			"The parameterized constructor <String>X(String) of type X is not applicable for the arguments (X)\n" + 
5936
			"----------\n");
5936
			"----------\n");
5937
	}			
5937
	}			
(-)src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_3.java (-9 / +9 lines)
Lines 1460-1466 Link Here
1460
			"----------\n" + 
1460
			"----------\n" + 
1461
			"5. ERROR in X.java (at line 6)\n" + 
1461
			"5. ERROR in X.java (at line 6)\n" + 
1462
			"	X(Exception exc) { super(exc);}\n" + 
1462
			"	X(Exception exc) { super(exc);}\n" + 
1463
			"	                   ^^^^^^^^^^\n" + 
1463
			"	                   ^^^^^^^^^^^\n" + 
1464
			"The constructor Object(Exception) is undefined\n" + 
1464
			"The constructor Object(Exception) is undefined\n" + 
1465
			"----------\n" + 
1465
			"----------\n" + 
1466
			"6. ERROR in X.java (at line 8)\n" + 
1466
			"6. ERROR in X.java (at line 8)\n" + 
Lines 1628-1634 Link Here
1628
			"----------\n" + 
1628
			"----------\n" + 
1629
			"12. ERROR in Test.java (at line 19)\n" + 
1629
			"12. ERROR in Test.java (at line 19)\n" + 
1630
			"	Sub (E e) {super(null);}\n" + 
1630
			"	Sub (E e) {super(null);}\n" + 
1631
			"	           ^^^^^^^^^^^\n" + 
1631
			"	           ^^^^^^^^^^^^\n" + 
1632
			"The constructor Object(null) is undefined\n" + 
1632
			"The constructor Object(null) is undefined\n" + 
1633
			"----------\n" + 
1633
			"----------\n" + 
1634
			"13. ERROR in Test.java (at line 20)\n" + 
1634
			"13. ERROR in Test.java (at line 20)\n" + 
Lines 1717-1723 Link Here
1717
			"----------\n" + 
1717
			"----------\n" + 
1718
			"10. ERROR in Test.java (at line 19)\n" + 
1718
			"10. ERROR in Test.java (at line 19)\n" + 
1719
			"	Sub (E e) {super(null);}\n" + 
1719
			"	Sub (E e) {super(null);}\n" + 
1720
			"	           ^^^^^^^^^^^\n" + 
1720
			"	           ^^^^^^^^^^^^\n" + 
1721
			"The constructor Object(null) is undefined\n" + 
1721
			"The constructor Object(null) is undefined\n" + 
1722
			"----------\n" + 
1722
			"----------\n" + 
1723
			"11. ERROR in Test.java (at line 20)\n" + 
1723
			"11. ERROR in Test.java (at line 20)\n" + 
Lines 1803-1809 Link Here
1803
			"----------\n" + 
1803
			"----------\n" + 
1804
			"10. ERROR in Test.java (at line 16)\n" + 
1804
			"10. ERROR in Test.java (at line 16)\n" + 
1805
			"	Sub (E e) {super(null);}\n" + 
1805
			"	Sub (E e) {super(null);}\n" + 
1806
			"	           ^^^^^^^^^^^\n" + 
1806
			"	           ^^^^^^^^^^^^\n" + 
1807
			"The constructor Object(null) is undefined\n" + 
1807
			"The constructor Object(null) is undefined\n" + 
1808
			"----------\n" + 
1808
			"----------\n" + 
1809
			"11. ERROR in Test.java (at line 17)\n" + 
1809
			"11. ERROR in Test.java (at line 17)\n" + 
Lines 1910-1916 Link Here
1910
			"----------\n" + 
1910
			"----------\n" + 
1911
			"10. ERROR in Test.java (at line 16)\n" + 
1911
			"10. ERROR in Test.java (at line 16)\n" + 
1912
			"	Sub (E e) {super(null);}\n" + 
1912
			"	Sub (E e) {super(null);}\n" + 
1913
			"	           ^^^^^^^^^^^\n" + 
1913
			"	           ^^^^^^^^^^^^\n" + 
1914
			"The constructor Object(null) is undefined\n" + 
1914
			"The constructor Object(null) is undefined\n" + 
1915
			"----------\n" + 
1915
			"----------\n" + 
1916
			"11. ERROR in Test.java (at line 17)\n" + 
1916
			"11. ERROR in Test.java (at line 17)\n" + 
Lines 2017-2023 Link Here
2017
			"----------\n" + 
2017
			"----------\n" + 
2018
			"10. ERROR in Test.java (at line 16)\n" + 
2018
			"10. ERROR in Test.java (at line 16)\n" + 
2019
			"	Sub (E e) {super(null);}\n" + 
2019
			"	Sub (E e) {super(null);}\n" + 
2020
			"	           ^^^^^^^^^^^\n" + 
2020
			"	           ^^^^^^^^^^^^\n" + 
2021
			"The constructor Object(null) is undefined\n" + 
2021
			"The constructor Object(null) is undefined\n" + 
2022
			"----------\n" + 
2022
			"----------\n" + 
2023
			"11. ERROR in Test.java (at line 17)\n" + 
2023
			"11. ERROR in Test.java (at line 17)\n" + 
Lines 2123-2129 Link Here
2123
			"----------\n" + 
2123
			"----------\n" + 
2124
			"10. ERROR in Test.java (at line 15)\r\n" + 
2124
			"10. ERROR in Test.java (at line 15)\r\n" + 
2125
			"	Sub (E e) {super(null);}\r\n" + 
2125
			"	Sub (E e) {super(null);}\r\n" + 
2126
			"	           ^^^^^^^^^^^\n" + 
2126
			"	           ^^^^^^^^^^^^\n" + 
2127
			"The constructor Object(null) is undefined\n" + 
2127
			"The constructor Object(null) is undefined\n" + 
2128
			"----------\n" + 
2128
			"----------\n" + 
2129
			"11. ERROR in Test.java (at line 16)\r\n" + 
2129
			"11. ERROR in Test.java (at line 16)\r\n" + 
Lines 2231-2237 Link Here
2231
			"----------\n" + 
2231
			"----------\n" + 
2232
			"10. ERROR in Test.java (at line 17)\n" + 
2232
			"10. ERROR in Test.java (at line 17)\n" + 
2233
			"	Sub (E e) {super(null);}\n" + 
2233
			"	Sub (E e) {super(null);}\n" + 
2234
			"	           ^^^^^^^^^^^\n" + 
2234
			"	           ^^^^^^^^^^^^\n" + 
2235
			"The constructor Object(null) is undefined\n" + 
2235
			"The constructor Object(null) is undefined\n" + 
2236
			"----------\n" + 
2236
			"----------\n" + 
2237
			"11. ERROR in Test.java (at line 18)\n" + 
2237
			"11. ERROR in Test.java (at line 18)\n" + 
Lines 2329-2335 Link Here
2329
			"----------\n" + 
2329
			"----------\n" + 
2330
			"9. ERROR in Test.java (at line 18)\n" + 
2330
			"9. ERROR in Test.java (at line 18)\n" + 
2331
			"	Sub (E e) {super(null);}\n" + 
2331
			"	Sub (E e) {super(null);}\n" + 
2332
			"	           ^^^^^^^^^^^\n" + 
2332
			"	           ^^^^^^^^^^^^\n" + 
2333
			"The constructor Object(null) is undefined\n" + 
2333
			"The constructor Object(null) is undefined\n" + 
2334
			"----------\n" + 
2334
			"----------\n" + 
2335
			"10. ERROR in Test.java (at line 19)\n" + 
2335
			"10. ERROR in Test.java (at line 19)\n" + 
(-)src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_4.java (-6 / +6 lines)
Lines 115-121 Link Here
115
		"----------\n" + 
115
		"----------\n" + 
116
		"2. ERROR in p1\\X.java (at line 5)\n" + 
116
		"2. ERROR in p1\\X.java (at line 5)\n" + 
117
		"	while (false) System.out.println(\"unreachable\");	\n" + 
117
		"	while (false) System.out.println(\"unreachable\");	\n" + 
118
		"	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
118
		"	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
119
		"Unreachable code\n" + 
119
		"Unreachable code\n" + 
120
		"----------\n" + 
120
		"----------\n" + 
121
		"3. ERROR in p1\\X.java (at line 8)\n" + 
121
		"3. ERROR in p1\\X.java (at line 8)\n" + 
Lines 125-131 Link Here
125
		"----------\n" + 
125
		"----------\n" + 
126
		"4. ERROR in p1\\X.java (at line 9)\n" + 
126
		"4. ERROR in p1\\X.java (at line 9)\n" + 
127
		"	for (;false;) System.out.println(\"unreachable\");	\n" + 
127
		"	for (;false;) System.out.println(\"unreachable\");	\n" + 
128
		"	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
128
		"	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
129
		"Unreachable code\n" + 
129
		"Unreachable code\n" + 
130
		"----------\n"
130
		"----------\n"
131
	);
131
	);
Lines 2163-2174 Link Here
2163
		"----------\n" + 
2163
		"----------\n" + 
2164
		"1. ERROR in X.java (at line 11)\n" + 
2164
		"1. ERROR in X.java (at line 11)\n" + 
2165
		"	super(null); //1\n" + 
2165
		"	super(null); //1\n" + 
2166
		"	^^^^^^^^^^^\n" + 
2166
		"	^^^^^^^^^^^^\n" + 
2167
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2167
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2168
		"----------\n" + 
2168
		"----------\n" + 
2169
		"2. ERROR in X.java (at line 14)\n" + 
2169
		"2. ERROR in X.java (at line 14)\n" + 
2170
		"	super(new M());//2\n" + 
2170
		"	super(new M());//2\n" + 
2171
		"	^^^^^^^^^^^^^^\n" + 
2171
		"	^^^^^^^^^^^^^^^\n" + 
2172
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2172
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2173
		"----------\n" + 
2173
		"----------\n" + 
2174
		"3. ERROR in X.java (at line 14)\n" + 
2174
		"3. ERROR in X.java (at line 14)\n" + 
Lines 2203-2209 Link Here
2203
		"----------\n" + 
2203
		"----------\n" + 
2204
		"1. ERROR in X.java (at line 8)\n" + 
2204
		"1. ERROR in X.java (at line 8)\n" + 
2205
		"	super();	// ko\n" + 
2205
		"	super();	// ko\n" + 
2206
		"	^^^^^^^\n" + 
2206
		"	^^^^^^^^\n" + 
2207
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2207
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2208
		"----------\n");
2208
		"----------\n");
2209
}
2209
}
Lines 2236-2242 Link Here
2236
		"----------\n" + 
2236
		"----------\n" + 
2237
		"1. ERROR in X.java (at line 8)\n" + 
2237
		"1. ERROR in X.java (at line 8)\n" + 
2238
		"	super(new MX4());	// ko\n" + 
2238
		"	super(new MX4());	// ko\n" + 
2239
		"	^^^^^^^^^^^^^^^^\n" + 
2239
		"	^^^^^^^^^^^^^^^^^\n" + 
2240
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2240
		"No enclosing instance of type X is available due to some intermediate constructor invocation\n" + 
2241
		"----------\n" + 
2241
		"----------\n" + 
2242
		"2. ERROR in X.java (at line 8)\n" + 
2242
		"2. ERROR in X.java (at line 8)\n" + 
(-)src/org/eclipse/jdt/core/tests/compiler/regression/JavadocTest_1_4.java (-9 / +9 lines)
Lines 1461-1467 Link Here
1461
			"----------\n" + 
1461
			"----------\n" + 
1462
			"5. ERROR in X.java (at line 6)\n" + 
1462
			"5. ERROR in X.java (at line 6)\n" + 
1463
			"	X(Exception exc) { super(exc);}\n" + 
1463
			"	X(Exception exc) { super(exc);}\n" + 
1464
			"	                   ^^^^^^^^^^\n" + 
1464
			"	                   ^^^^^^^^^^^\n" + 
1465
			"The constructor Object(Exception) is undefined\n" + 
1465
			"The constructor Object(Exception) is undefined\n" + 
1466
			"----------\n" + 
1466
			"----------\n" + 
1467
			"6. ERROR in X.java (at line 8)\n" + 
1467
			"6. ERROR in X.java (at line 8)\n" + 
Lines 1630-1636 Link Here
1630
			"----------\n" + 
1630
			"----------\n" + 
1631
			"12. ERROR in Test.java (at line 19)\n" + 
1631
			"12. ERROR in Test.java (at line 19)\n" + 
1632
			"	Sub (E e) {super(null);}\n" + 
1632
			"	Sub (E e) {super(null);}\n" + 
1633
			"	           ^^^^^^^^^^^\n" + 
1633
			"	           ^^^^^^^^^^^^\n" + 
1634
			"The constructor Object(null) is undefined\n" + 
1634
			"The constructor Object(null) is undefined\n" + 
1635
			"----------\n" + 
1635
			"----------\n" + 
1636
			"13. ERROR in Test.java (at line 20)\n" + 
1636
			"13. ERROR in Test.java (at line 20)\n" + 
Lines 1719-1725 Link Here
1719
			"----------\n" + 
1719
			"----------\n" + 
1720
			"10. ERROR in Test.java (at line 19)\n" + 
1720
			"10. ERROR in Test.java (at line 19)\n" + 
1721
			"	Sub (E e) {super(null);}\n" + 
1721
			"	Sub (E e) {super(null);}\n" + 
1722
			"	           ^^^^^^^^^^^\n" + 
1722
			"	           ^^^^^^^^^^^^\n" + 
1723
			"The constructor Object(null) is undefined\n" + 
1723
			"The constructor Object(null) is undefined\n" + 
1724
			"----------\n" + 
1724
			"----------\n" + 
1725
			"11. ERROR in Test.java (at line 20)\n" + 
1725
			"11. ERROR in Test.java (at line 20)\n" + 
Lines 1805-1811 Link Here
1805
			"----------\n" + 
1805
			"----------\n" + 
1806
			"10. ERROR in Test.java (at line 16)\n" + 
1806
			"10. ERROR in Test.java (at line 16)\n" + 
1807
			"	Sub (E e) {super(null);}\n" + 
1807
			"	Sub (E e) {super(null);}\n" + 
1808
			"	           ^^^^^^^^^^^\n" + 
1808
			"	           ^^^^^^^^^^^^\n" + 
1809
			"The constructor Object(null) is undefined\n" + 
1809
			"The constructor Object(null) is undefined\n" + 
1810
			"----------\n" + 
1810
			"----------\n" + 
1811
			"11. ERROR in Test.java (at line 17)\n" + 
1811
			"11. ERROR in Test.java (at line 17)\n" + 
Lines 1912-1918 Link Here
1912
			"----------\n" + 
1912
			"----------\n" + 
1913
			"10. ERROR in Test.java (at line 16)\n" + 
1913
			"10. ERROR in Test.java (at line 16)\n" + 
1914
			"	Sub (E e) {super(null);}\n" + 
1914
			"	Sub (E e) {super(null);}\n" + 
1915
			"	           ^^^^^^^^^^^\n" + 
1915
			"	           ^^^^^^^^^^^^\n" + 
1916
			"The constructor Object(null) is undefined\n" + 
1916
			"The constructor Object(null) is undefined\n" + 
1917
			"----------\n" + 
1917
			"----------\n" + 
1918
			"11. ERROR in Test.java (at line 17)\n" + 
1918
			"11. ERROR in Test.java (at line 17)\n" + 
Lines 2019-2025 Link Here
2019
			"----------\n" + 
2019
			"----------\n" + 
2020
			"10. ERROR in Test.java (at line 16)\n" + 
2020
			"10. ERROR in Test.java (at line 16)\n" + 
2021
			"	Sub (E e) {super(null);}\n" + 
2021
			"	Sub (E e) {super(null);}\n" + 
2022
			"	           ^^^^^^^^^^^\n" + 
2022
			"	           ^^^^^^^^^^^^\n" + 
2023
			"The constructor Object(null) is undefined\n" + 
2023
			"The constructor Object(null) is undefined\n" + 
2024
			"----------\n" + 
2024
			"----------\n" + 
2025
			"11. ERROR in Test.java (at line 17)\n" + 
2025
			"11. ERROR in Test.java (at line 17)\n" + 
Lines 2125-2131 Link Here
2125
			"----------\n" + 
2125
			"----------\n" + 
2126
			"10. ERROR in Test.java (at line 15)\r\n" + 
2126
			"10. ERROR in Test.java (at line 15)\r\n" + 
2127
			"	Sub (E e) {super(null);}\r\n" + 
2127
			"	Sub (E e) {super(null);}\r\n" + 
2128
			"	           ^^^^^^^^^^^\n" + 
2128
			"	           ^^^^^^^^^^^^\n" + 
2129
			"The constructor Object(null) is undefined\n" + 
2129
			"The constructor Object(null) is undefined\n" + 
2130
			"----------\n" + 
2130
			"----------\n" + 
2131
			"11. ERROR in Test.java (at line 16)\r\n" + 
2131
			"11. ERROR in Test.java (at line 16)\r\n" + 
Lines 2233-2239 Link Here
2233
			"----------\n" + 
2233
			"----------\n" + 
2234
			"10. ERROR in Test.java (at line 17)\n" + 
2234
			"10. ERROR in Test.java (at line 17)\n" + 
2235
			"	Sub (E e) {super(null);}\n" + 
2235
			"	Sub (E e) {super(null);}\n" + 
2236
			"	           ^^^^^^^^^^^\n" + 
2236
			"	           ^^^^^^^^^^^^\n" + 
2237
			"The constructor Object(null) is undefined\n" + 
2237
			"The constructor Object(null) is undefined\n" + 
2238
			"----------\n" + 
2238
			"----------\n" + 
2239
			"11. ERROR in Test.java (at line 18)\n" + 
2239
			"11. ERROR in Test.java (at line 18)\n" + 
Lines 2331-2337 Link Here
2331
			"----------\n" + 
2331
			"----------\n" + 
2332
			"9. ERROR in Test.java (at line 18)\n" + 
2332
			"9. ERROR in Test.java (at line 18)\n" + 
2333
			"	Sub (E e) {super(null);}\n" + 
2333
			"	Sub (E e) {super(null);}\n" + 
2334
			"	           ^^^^^^^^^^^\n" + 
2334
			"	           ^^^^^^^^^^^^\n" + 
2335
			"The constructor Object(null) is undefined\n" + 
2335
			"The constructor Object(null) is undefined\n" + 
2336
			"----------\n" + 
2336
			"----------\n" + 
2337
			"10. ERROR in Test.java (at line 19)\n" + 
2337
			"10. ERROR in Test.java (at line 19)\n" + 
(-)src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_3.java (-2 / +2 lines)
Lines 109-120 Link Here
109
		"----------\n" + 
109
		"----------\n" + 
110
		"1. ERROR in p1\\X.java (at line 5)\n" + 
110
		"1. ERROR in p1\\X.java (at line 5)\n" + 
111
		"	while (false) System.out.println(\"unreachable\");	\n" + 
111
		"	while (false) System.out.println(\"unreachable\");	\n" + 
112
		"	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
112
		"	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
113
		"Unreachable code\n" + 
113
		"Unreachable code\n" + 
114
		"----------\n" + 
114
		"----------\n" + 
115
		"2. ERROR in p1\\X.java (at line 9)\n" + 
115
		"2. ERROR in p1\\X.java (at line 9)\n" + 
116
		"	for (;false;) System.out.println(\"unreachable\");	\n" + 
116
		"	for (;false;) System.out.println(\"unreachable\");	\n" + 
117
		"	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
117
		"	              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
118
		"Unreachable code\n" + 
118
		"Unreachable code\n" + 
119
		"----------\n"
119
		"----------\n"
120
	);
120
	);
(-)src/org/eclipse/jdt/core/tests/compiler/parser/ComplianceDiagnoseTest.java (-1 / +1 lines)
Lines 2031-2037 Link Here
2031
		"----------\n" + 
2031
		"----------\n" + 
2032
		"6. ERROR in X.java (at line 9)\n" + 
2032
		"6. ERROR in X.java (at line 9)\n" + 
2033
		"	<String>super(\"SUCCESS\");\n" + 
2033
		"	<String>super(\"SUCCESS\");\n" + 
2034
		"	        ^^^^^^^^^^^^^^^^\n" + 
2034
		"	        ^^^^^^^^^^^^^^^^^\n" + 
2035
		"The constructor X(String) is undefined\n" + 
2035
		"The constructor X(String) is undefined\n" + 
2036
		"----------\n";
2036
		"----------\n";
2037
	String expected14ProblemLog =
2037
	String expected14ProblemLog =
(-)src/org/eclipse/jdt/core/tests/model/JavaSearchTests.java (-5 / +5 lines)
Lines 147-153 Link Here
147
		getJavaSearchScope(), 
147
		getJavaSearchScope(), 
148
		this.resultCollector);
148
		this.resultCollector);
149
	assertSearchResults(
149
	assertSearchResults(
150
		"src/p/Z.java p.Z(int) [super(i)]", 
150
		"src/p/Z.java p.Z(int) [super(i);]", 
151
		this.resultCollector);
151
		this.resultCollector);
152
}
152
}
153
/**
153
/**
Lines 162-169 Link Here
162
		getJavaSearchScope(), 
162
		getJavaSearchScope(), 
163
		this.resultCollector);
163
		this.resultCollector);
164
	assertSearchResults(
164
	assertSearchResults(
165
		"src/p/Y.java p.Y(int) [super(i)]\n" +
165
		"src/p/Y.java p.Y(int) [super(i);]\n" +
166
		"src/p/Y.java p.Y(boolean) [super(1)]", 
166
		"src/p/Y.java p.Y(boolean) [super(1);]", 
167
		this.resultCollector);
167
		this.resultCollector);
168
}
168
}
169
/**
169
/**
Lines 226-232 Link Here
226
		getJavaSearchScope(), 
226
		getJavaSearchScope(), 
227
		this.resultCollector);
227
		this.resultCollector);
228
	assertSearchResults(
228
	assertSearchResults(
229
		"src/c10/X.java c10.B() [new X().super()]", 
229
		"src/c10/X.java c10.B() [new X().super();]", 
230
		this.resultCollector);
230
		this.resultCollector);
231
}
231
}
232
/*
232
/*
Lines 260-266 Link Here
260
	assertSearchResults(
260
	assertSearchResults(
261
		"src/c11/A.java c11.A1 [A1] SYNTHETIC\n" + 
261
		"src/c11/A.java c11.A1 [A1] SYNTHETIC\n" + 
262
		"src/c11/A.java c11.A2() [A2] SYNTHETIC\n" + 
262
		"src/c11/A.java c11.A2() [A2] SYNTHETIC\n" + 
263
		"src/c11/A.java c11.A3() [super()]",
263
		"src/c11/A.java c11.A3() [super();]",
264
		this.resultCollector);
264
		this.resultCollector);
265
}
265
}
266
/**
266
/**
(-)src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests.java (-2 / +2 lines)
Lines 618-624 Link Here
618
	// Search for constructor declarations and references
618
	// Search for constructor declarations and references
619
	search(method, ALL_OCCURRENCES);
619
	search(method, ALL_OCCURRENCES);
620
	assertSearchResults(
620
	assertSearchResults(
621
		"src/b77093/X.java b77093.X() [this(new Z[10][])] EXACT_MATCH\n"+
621
		"src/b77093/X.java b77093.X() [this(new Z[10][]);] EXACT_MATCH\n"+
622
		"src/b77093/X.java b77093.X(Z[][]) [X] EXACT_MATCH"
622
		"src/b77093/X.java b77093.X(Z[][]) [X] EXACT_MATCH"
623
	);
623
	);
624
}
624
}
Lines 3671-3677 Link Here
3671
	search(method, REFERENCES, SearchPattern.R_ERASURE_MATCH);
3671
	search(method, REFERENCES, SearchPattern.R_ERASURE_MATCH);
3672
	assertSearchResults(
3672
	assertSearchResults(
3673
		"src/b97087/Bug.java b97087.Foo() [Foo] EXACT_MATCH\n" + 
3673
		"src/b97087/Bug.java b97087.Foo() [Foo] EXACT_MATCH\n" + 
3674
		"src/b97087/Bug.java b97087.Bar() [super()] ERASURE_MATCH"
3674
		"src/b97087/Bug.java b97087.Bar() [super();] ERASURE_MATCH"
3675
	);
3675
	);
3676
}
3676
}
3677
3677
(-)src/org/eclipse/jdt/core/tests/model/AccessRestrictionsTests.java (-2 / +2 lines)
Lines 331-337 Link Here
331
			"----------\n" + 
331
			"----------\n" + 
332
			"2. ERROR in /P2/src/p/Y.java (at line 5)\n" + 
332
			"2. ERROR in /P2/src/p/Y.java (at line 5)\n" + 
333
			"	super(0);\n" + 
333
			"	super(0);\n" + 
334
			"	^^^^^^^^\n" + 
334
			"	^^^^^^^^^\n" + 
335
			"Access restriction: The constructor X1.C1(int) is not accessible due to restriction on required project P1\n" + 
335
			"Access restriction: The constructor X1.C1(int) is not accessible due to restriction on required project P1\n" + 
336
			"----------\n" + 
336
			"----------\n" + 
337
			"3. ERROR in /P2/src/p/Y.java (at line 6)\n" + 
337
			"3. ERROR in /P2/src/p/Y.java (at line 6)\n" + 
Lines 998-1004 Link Here
998
			"----------\n" + 
998
			"----------\n" + 
999
			"2. ERROR in /P2/src/p/Y.java (at line 5)\n" + 
999
			"2. ERROR in /P2/src/p/Y.java (at line 5)\n" + 
1000
			"	super(0);\n" + 
1000
			"	super(0);\n" + 
1001
			"	^^^^^^^^\n" + 
1001
			"	^^^^^^^^^\n" + 
1002
			"Access restriction: The constructor X1.C1(int) is not accessible due to restriction on required project P1\n" + 
1002
			"Access restriction: The constructor X1.C1(int) is not accessible due to restriction on required project P1\n" + 
1003
			"----------\n" + 
1003
			"----------\n" + 
1004
			"3. ERROR in /P2/src/p/Y.java (at line 6)\n" + 
1004
			"3. ERROR in /P2/src/p/Y.java (at line 6)\n" + 
(-)src/org/eclipse/jdt/core/tests/model/ReconcilerTests.java (-1 / +1 lines)
Lines 2768-2774 Link Here
2768
		"----------\n" + 
2768
		"----------\n" + 
2769
		"1. ERROR in /Reconciler/src/p1/X.java (at line 4)\n" + 
2769
		"1. ERROR in /Reconciler/src/p1/X.java (at line 4)\n" + 
2770
		"	throw new Exception();\n" + 
2770
		"	throw new Exception();\n" + 
2771
		"	^^^^^^^^^^^^^^^^^^^^^\n" + 
2771
		"	^^^^^^^^^^^^^^^^^^^^^^\n" + 
2772
		"Unhandled exception type Exception\n" + 
2772
		"Unhandled exception type Exception\n" + 
2773
		"----------\n"
2773
		"----------\n"
2774
	);
2774
	);
(-)Eclipse Java Tests Compiler/org/eclipse/jdt/tests/compiler/regression/InitializationTest.java (-15 / +15 lines)
Lines 82-88 Link Here
82
		"----------\n" + 
82
		"----------\n" + 
83
		"1. ERROR in X.java (at line 10)\n" + 
83
		"1. ERROR in X.java (at line 10)\n" + 
84
		"	throw new InstantiationException();		\n" + 
84
		"	throw new InstantiationException();		\n" + 
85
		"	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
85
		"	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
86
		"Unhandled exception type InstantiationException\n" + 
86
		"Unhandled exception type InstantiationException\n" + 
87
		"----------\n"
87
		"----------\n"
88
	);									
88
	);									
Lines 640-646 Link Here
640
		"----------\n" + 
640
		"----------\n" + 
641
		"2. ERROR in X.java (at line 11)\n" + 
641
		"2. ERROR in X.java (at line 11)\n" + 
642
		"	System.out.println(\"unreachable\"); \n" + 
642
		"	System.out.println(\"unreachable\"); \n" + 
643
		"	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
643
		"	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
644
		"Unreachable code\n" + 
644
		"Unreachable code\n" + 
645
		"----------\n"
645
		"----------\n"
646
	);									
646
	);									
Lines 698-709 Link Here
698
		"----------\n" + 
698
		"----------\n" + 
699
		"1. ERROR in Flub.java (at line 4)\n" + 
699
		"1. ERROR in Flub.java (at line 4)\n" + 
700
		"	this(1); \n" + 
700
		"	this(1); \n" + 
701
		"	^^^^^^^\n" + 
701
		"	^^^^^^^^\n" + 
702
		"Recursive constructor invocation Flub(int)\n" + 
702
		"Recursive constructor invocation Flub(int)\n" + 
703
		"----------\n" + 
703
		"----------\n" + 
704
		"2. ERROR in Flub.java (at line 7)\n" + 
704
		"2. ERROR in Flub.java (at line 7)\n" + 
705
		"	this(); \n" + 
705
		"	this(); \n" + 
706
		"	^^^^^^\n" + 
706
		"	^^^^^^^\n" + 
707
		"Recursive constructor invocation Flub()\n" + 
707
		"Recursive constructor invocation Flub()\n" + 
708
		"----------\n"
708
		"----------\n"
709
	);									
709
	);									
Lines 3243-3249 Link Here
3243
		"----------\n" + 
3243
		"----------\n" + 
3244
		"2. ERROR in X.java (at line 11)\n" + 
3244
		"2. ERROR in X.java (at line 11)\n" + 
3245
		"	System.out.println(i);//1 \n" + 
3245
		"	System.out.println(i);//1 \n" + 
3246
		"	^^^^^^^^^^^^^^^^^^^^^\n" + 
3246
		"	^^^^^^^^^^^^^^^^^^^^^^\n" + 
3247
		"Unreachable code\n" + 
3247
		"Unreachable code\n" + 
3248
		"----------\n");							
3248
		"----------\n");							
3249
}
3249
}
Lines 3276-3287 Link Here
3276
		"----------\n" + 
3276
		"----------\n" + 
3277
		"2. ERROR in X.java (at line 11)\n" + 
3277
		"2. ERROR in X.java (at line 11)\n" + 
3278
		"	System.out.println(i);//1	\n" + 
3278
		"	System.out.println(i);//1	\n" + 
3279
		"	^^^^^^^^^^^^^^^^^^^^^\n" + 
3279
		"	^^^^^^^^^^^^^^^^^^^^^^\n" + 
3280
		"Unreachable code\n" + 
3280
		"Unreachable code\n" + 
3281
		"----------\n" + 
3281
		"----------\n" + 
3282
		"3. ERROR in X.java (at line 13)\n" + 
3282
		"3. ERROR in X.java (at line 13)\n" + 
3283
		"	System.out.println(i);//2	\n" + 
3283
		"	System.out.println(i);//2	\n" + 
3284
		"	^^^^^^^^^^^^^^^^^^^^^\n" + 
3284
		"	^^^^^^^^^^^^^^^^^^^^^^\n" + 
3285
		"Unreachable code\n" + 
3285
		"Unreachable code\n" + 
3286
		"----------\n");							
3286
		"----------\n");							
3287
}
3287
}
Lines 3353-3359 Link Here
3353
		"----------\n" + 
3353
		"----------\n" + 
3354
		"1. ERROR in X.java (at line 6)\n" + 
3354
		"1. ERROR in X.java (at line 6)\n" + 
3355
		"	i = 0;\n" + 
3355
		"	i = 0;\n" + 
3356
		"	^^^^^\n" + 
3356
		"	^^^^^^\n" + 
3357
		"Unreachable code\n" + 
3357
		"Unreachable code\n" + 
3358
		"----------\n");
3358
		"----------\n");
3359
}
3359
}
Lines 3436-3442 Link Here
3436
		"----------\n" + 
3436
		"----------\n" + 
3437
		"3. ERROR in X.java (at line 12)\n" + 
3437
		"3. ERROR in X.java (at line 12)\n" + 
3438
		"	System.out.println(var);	\n" + 
3438
		"	System.out.println(var);	\n" + 
3439
		"	^^^^^^^^^^^^^^^^^^^^^^^\n" + 
3439
		"	^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
3440
		"Unreachable code\n" + 
3440
		"Unreachable code\n" + 
3441
		"----------\n");
3441
		"----------\n");
3442
}	
3442
}	
Lines 3470-3476 Link Here
3470
		"----------\n" + 
3470
		"----------\n" + 
3471
		"2. ERROR in X.java (at line 12)\n" + 
3471
		"2. ERROR in X.java (at line 12)\n" + 
3472
		"	System.out.println(var);	\n" + 
3472
		"	System.out.println(var);	\n" + 
3473
		"	^^^^^^^^^^^^^^^^^^^^^^^\n" + 
3473
		"	^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
3474
		"Unreachable code\n" + 
3474
		"Unreachable code\n" + 
3475
		"----------\n");
3475
		"----------\n");
3476
}	
3476
}	
Lines 3603-3614 Link Here
3603
		"----------\n" + 
3603
		"----------\n" + 
3604
		"2. ERROR in X.java (at line 12)\n" + 
3604
		"2. ERROR in X.java (at line 12)\n" + 
3605
		"	System.out.println(var);//1	\n" + 
3605
		"	System.out.println(var);//1	\n" + 
3606
		"	^^^^^^^^^^^^^^^^^^^^^^^\n" + 
3606
		"	^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
3607
		"Unreachable code\n" + 
3607
		"Unreachable code\n" + 
3608
		"----------\n" + 
3608
		"----------\n" + 
3609
		"3. ERROR in X.java (at line 14)\n" + 
3609
		"3. ERROR in X.java (at line 14)\n" + 
3610
		"	System.out.println(var);//2	\n" + 
3610
		"	System.out.println(var);//2	\n" + 
3611
		"	^^^^^^^^^^^^^^^^^^^^^^^\n" + 
3611
		"	^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
3612
		"Unreachable code\n" + 
3612
		"Unreachable code\n" + 
3613
		"----------\n");
3613
		"----------\n");
3614
}
3614
}
Lines 3636-3642 Link Here
3636
		"----------\n" + 
3636
		"----------\n" + 
3637
		"1. ERROR in X.java (at line 11)\n" + 
3637
		"1. ERROR in X.java (at line 11)\n" + 
3638
		"	System.out.println(var);//1	\n" + 
3638
		"	System.out.println(var);//1	\n" + 
3639
		"	^^^^^^^^^^^^^^^^^^^^^^^\n" + 
3639
		"	^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
3640
		"Unreachable code\n" + 
3640
		"Unreachable code\n" + 
3641
		"----------\n");
3641
		"----------\n");
3642
}
3642
}
Lines 4435-4441 Link Here
4435
		"----------\n" + 
4435
		"----------\n" + 
4436
		"1. ERROR in X.java (at line 6)\n" + 
4436
		"1. ERROR in X.java (at line 6)\n" + 
4437
		"	if (false) throw new Exception(); // uncaught\n" + 
4437
		"	if (false) throw new Exception(); // uncaught\n" + 
4438
		"	           ^^^^^^^^^^^^^^^^^^^^^\n" + 
4438
		"	           ^^^^^^^^^^^^^^^^^^^^^^\n" + 
4439
		"Unhandled exception type Exception\n" + 
4439
		"Unhandled exception type Exception\n" + 
4440
		"----------\n");							
4440
		"----------\n");							
4441
}
4441
}
Lines 4761-4767 Link Here
4761
		"----------\n" + 
4761
		"----------\n" + 
4762
		"1. ERROR in X.java (at line 8)\n" + 
4762
		"1. ERROR in X.java (at line 8)\n" + 
4763
		"	System.out.println(\"unreachable\");\n" + 
4763
		"	System.out.println(\"unreachable\");\n" + 
4764
		"	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
4764
		"	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
4765
		"Unreachable code\n" + 
4765
		"Unreachable code\n" + 
4766
		"----------\n");
4766
		"----------\n");
4767
}
4767
}
(-)Eclipse Java Tests Compiler/org/eclipse/jdt/tests/compiler/regression/NegativeTest.java (-41 / +41 lines)
Lines 1258-1264 Link Here
1258
		"----------\n" + 
1258
		"----------\n" + 
1259
		"1. ERROR in p\\X.java (at line 5)\n" + 
1259
		"1. ERROR in p\\X.java (at line 5)\n" + 
1260
		"	this();\n" + 
1260
		"	this();\n" + 
1261
		"	^^^^^^\n" + 
1261
		"	^^^^^^^\n" + 
1262
		"Recursive constructor invocation X.X1()\n" + 
1262
		"Recursive constructor invocation X.X1()\n" + 
1263
		"----------\n"
1263
		"----------\n"
1264
	);
1264
	);
Lines 1349-1355 Link Here
1349
		"----------\n" + 
1349
		"----------\n" + 
1350
		"2. ERROR in p\\X.java (at line 14)\n" + 
1350
		"2. ERROR in p\\X.java (at line 14)\n" + 
1351
		"	return; // unreachable\n" + 
1351
		"	return; // unreachable\n" + 
1352
		"	^^^^^^\n" + 
1352
		"	^^^^^^^\n" + 
1353
		"Unreachable code\n" + 
1353
		"Unreachable code\n" + 
1354
		"----------\n"
1354
		"----------\n"
1355
	);
1355
	);
Lines 2453-2459 Link Here
2453
		"----------\n" + 
2453
		"----------\n" + 
2454
		"3. ERROR in p\\X.java (at line 5)\n" + 
2454
		"3. ERROR in p\\X.java (at line 5)\n" + 
2455
		"	return; \n" + 
2455
		"	return; \n" + 
2456
		"	^^^^^^\n" + 
2456
		"	^^^^^^^\n" + 
2457
		"Cannot return from within an initializer\n" + 
2457
		"Cannot return from within an initializer\n" + 
2458
		"----------\n"
2458
		"----------\n"
2459
	);
2459
	);
Lines 2505-2526 Link Here
2505
		"----------\n" + 
2505
		"----------\n" + 
2506
		"1. ERROR in p\\X.java (at line 9)\n" + 
2506
		"1. ERROR in p\\X.java (at line 9)\n" + 
2507
		"	this((double) i);//Y2\n" + 
2507
		"	this((double) i);//Y2\n" + 
2508
		"	^^^^^^^^^^^^^^^^\n" + 
2508
		"	^^^^^^^^^^^^^^^^^\n" + 
2509
		"Recursive constructor invocation Y(double)\n" + 
2509
		"Recursive constructor invocation Y(double)\n" + 
2510
		"----------\n" + 
2510
		"----------\n" + 
2511
		"2. ERROR in p\\X.java (at line 12)\n" + 
2511
		"2. ERROR in p\\X.java (at line 12)\n" + 
2512
		"	this((byte) d);//Y3\n" + 
2512
		"	this((byte) d);//Y3\n" + 
2513
		"	^^^^^^^^^^^^^^\n" + 
2513
		"	^^^^^^^^^^^^^^^\n" + 
2514
		"Recursive constructor invocation Y(byte)\n" + 
2514
		"Recursive constructor invocation Y(byte)\n" + 
2515
		"----------\n" + 
2515
		"----------\n" + 
2516
		"3. ERROR in p\\X.java (at line 15)\n" + 
2516
		"3. ERROR in p\\X.java (at line 15)\n" + 
2517
		"	this((float) b);//Y4\n" + 
2517
		"	this((float) b);//Y4\n" + 
2518
		"	^^^^^^^^^^^^^^^\n" + 
2518
		"	^^^^^^^^^^^^^^^^\n" + 
2519
		"Recursive constructor invocation Y(float)\n" + 
2519
		"Recursive constructor invocation Y(float)\n" + 
2520
		"----------\n" + 
2520
		"----------\n" + 
2521
		"4. ERROR in p\\X.java (at line 18)\n" + 
2521
		"4. ERROR in p\\X.java (at line 18)\n" + 
2522
		"	this((int) f);//Y5\n" + 
2522
		"	this((int) f);//Y5\n" + 
2523
		"	^^^^^^^^^^^^^\n" + 
2523
		"	^^^^^^^^^^^^^^\n" + 
2524
		"Recursive constructor invocation Y(int)\n" + 
2524
		"Recursive constructor invocation Y(int)\n" + 
2525
		"----------\n" + 
2525
		"----------\n" + 
2526
		"5. ERROR in p\\X.java (at line 22)\n" + 
2526
		"5. ERROR in p\\X.java (at line 22)\n" + 
Lines 2535-2541 Link Here
2535
		"----------\n" + 
2535
		"----------\n" + 
2536
		"7. ERROR in p\\X.java (at line 25)\n" + 
2536
		"7. ERROR in p\\X.java (at line 25)\n" + 
2537
		"	this((float) s.length());//Y1\n" + 
2537
		"	this((float) s.length());//Y1\n" + 
2538
		"	^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
2538
		"	^^^^^^^^^^^^^^^^^^^^^^^^^\n" + 
2539
		"Constructor call must be the first statement in a constructor\n" + 
2539
		"Constructor call must be the first statement in a constructor\n" + 
2540
		"----------\n" + 
2540
		"----------\n" + 
2541
		"8. ERROR in p\\X.java (at line 27)\n" + 
2541
		"8. ERROR in p\\X.java (at line 27)\n" + 
Lines 2545-2551 Link Here
2545
		"----------\n" + 
2545
		"----------\n" + 
2546
		"9. ERROR in p\\X.java (at line 28)\n" + 
2546
		"9. ERROR in p\\X.java (at line 28)\n" + 
2547
		"	this((byte) i);//Y2\n" + 
2547
		"	this((byte) i);//Y2\n" + 
2548
		"	^^^^^^^^^^^^^^\n" + 
2548
		"	^^^^^^^^^^^^^^^\n" + 
2549
		"Constructor call must be the first statement in a constructor\n" + 
2549
		"Constructor call must be the first statement in a constructor\n" + 
2550
		"----------\n" + 
2550
		"----------\n" + 
2551
		"10. ERROR in p\\X.java (at line 30)\n" + 
2551
		"10. ERROR in p\\X.java (at line 30)\n" + 
Lines 2555-2561 Link Here
2555
		"----------\n" + 
2555
		"----------\n" + 
2556
		"11. ERROR in p\\X.java (at line 31)\n" + 
2556
		"11. ERROR in p\\X.java (at line 31)\n" + 
2557
		"	this((float) d);//Y3\n" + 
2557
		"	this((float) d);//Y3\n" + 
2558
		"	^^^^^^^^^^^^^^^\n" + 
2558
		"	^^^^^^^^^^^^^^^^\n" + 
2559
		"Constructor call must be the first statement in a constructor\n" + 
2559
		"Constructor call must be the first statement in a constructor\n" + 
2560
		"----------\n" + 
2560
		"----------\n" + 
2561
		"12. ERROR in p\\X.java (at line 33)\n" + 
2561
		"12. ERROR in p\\X.java (at line 33)\n" + 
Lines 2565-2571 Link Here
2565
		"----------\n" + 
2565
		"----------\n" + 
2566
		"13. ERROR in p\\X.java (at line 34)\n" + 
2566
		"13. ERROR in p\\X.java (at line 34)\n" + 
2567
		"	this((float) b);//Y4\n" + 
2567
		"	this((float) b);//Y4\n" + 
2568
		"	^^^^^^^^^^^^^^^\n" + 
2568
		"	^^^^^^^^^^^^^^^^\n" + 
2569
		"Constructor call must be the first statement in a constructor\n" + 
2569
		"Constructor call must be the first statement in a constructor\n" + 
2570
		"----------\n" + 
2570
		"----------\n" + 
2571
		"14. ERROR in p\\X.java (at line 36)\n" + 
2571
		"14. ERROR in p\\X.java (at line 36)\n" + 
Lines 2575-2581 Link Here
2575
		"----------\n" + 
2575
		"----------\n" + 
2576
		"15. ERROR in p\\X.java (at line 37)\n" + 
2576
		"15. ERROR in p\\X.java (at line 37)\n" + 
2577
		"	this((int) f);//Y5\n" + 
2577
		"	this((int) f);//Y5\n" + 
2578
		"	^^^^^^^^^^^^^\n" + 
2578
		"	^^^^^^^^^^^^^^\n" + 
2579
		"Constructor call must be the first statement in a constructor\n" + 
2579
		"Constructor call must be the first statement in a constructor\n" + 
2580
		"----------\n"
2580
		"----------\n"
2581
	);
2581
	);
Lines 3275-3281 Link Here
3275
		"----------\n" + 
3275
		"----------\n" + 
3276
		"3. ERROR in p\\X.java (at line 6)\n" + 
3276
		"3. ERROR in p\\X.java (at line 6)\n" + 
3277
		"	return;        // Wrong.\n" + 
3277
		"	return;        // Wrong.\n" + 
3278
		"	^^^^^^\n" + 
3278
		"	^^^^^^^\n" + 
3279
		"Cannot return from within an initializer\n" + 
3279
		"Cannot return from within an initializer\n" + 
3280
		"----------\n" + 
3280
		"----------\n" + 
3281
		"4. ERROR in p\\X.java (at line 8)\n" + 
3281
		"4. ERROR in p\\X.java (at line 8)\n" + 
Lines 3497-3508 Link Here
3497
		"----------\n" + 
3497
		"----------\n" + 
3498
		"2. ERROR in p\\BytecodeA.java (at line 83)\n" + 
3498
		"2. ERROR in p\\BytecodeA.java (at line 83)\n" + 
3499
		"	continue L; // bad\n" + 
3499
		"	continue L; // bad\n" + 
3500
		"	^^^^^^^^^^\n" + 
3500
		"	^^^^^^^^^^^\n" + 
3501
		"continue cannot be used outside of a loop\n" + 
3501
		"continue cannot be used outside of a loop\n" + 
3502
		"----------\n" + 
3502
		"----------\n" + 
3503
		"3. ERROR in p\\BytecodeA.java (at line 91)\n" + 
3503
		"3. ERROR in p\\BytecodeA.java (at line 91)\n" + 
3504
		"	continue L; // bad\n" + 
3504
		"	continue L; // bad\n" + 
3505
		"	^^^^^^^^^^\n" + 
3505
		"	^^^^^^^^^^^\n" + 
3506
		"continue cannot be used outside of a loop\n" + 
3506
		"continue cannot be used outside of a loop\n" + 
3507
		"----------\n" + 
3507
		"----------\n" + 
3508
		"4. WARNING in p\\BytecodeA.java (at line 93)\n" + 
3508
		"4. WARNING in p\\BytecodeA.java (at line 93)\n" + 
Lines 3519-3525 Link Here
3519
		"----------\n" + 
3519
		"----------\n" + 
3520
		"6. ERROR in p\\BytecodeA.java (at line 105)\n" + 
3520
		"6. ERROR in p\\BytecodeA.java (at line 105)\n" + 
3521
		"	continue L; // good\n" + 
3521
		"	continue L; // good\n" + 
3522
		"	^^^^^^^^^^\n" + 
3522
		"	^^^^^^^^^^^\n" + 
3523
		"continue cannot be used outside of a loop\n" + 
3523
		"continue cannot be used outside of a loop\n" + 
3524
		"----------\n" + 
3524
		"----------\n" + 
3525
		"7. ERROR in p\\BytecodeA.java (at line 115)\n" + 
3525
		"7. ERROR in p\\BytecodeA.java (at line 115)\n" + 
Lines 4198-4204 Link Here
4198
		"----------\n" + 
4198
		"----------\n" + 
4199
		"1. ERROR in p\\B.java (at line 16)\n" + 
4199
		"1. ERROR in p\\B.java (at line 16)\n" + 
4200
		"	return 3;\n" + 
4200
		"	return 3;\n" + 
4201
		"	^^^^^^^^\n" + 
4201
		"	^^^^^^^^^\n" + 
4202
		"Unreachable code\n" + 
4202
		"Unreachable code\n" + 
4203
		"----------\n"
4203
		"----------\n"
4204
	);
4204
	);
Lines 4729-4735 Link Here
4729
		"----------\n" + 
4729
		"----------\n" + 
4730
		"1. ERROR in p\\F.java (at line 7)\n" + 
4730
		"1. ERROR in p\\F.java (at line 7)\n" + 
4731
		"	{ if (true) break; }\n" + 
4731
		"	{ if (true) break; }\n" + 
4732
		"	            ^^^^^\n" + 
4732
		"	            ^^^^^^\n" + 
4733
		"break cannot be used outside of a loop or a switch\n" + 
4733
		"break cannot be used outside of a loop or a switch\n" + 
4734
		"----------\n" + 
4734
		"----------\n" + 
4735
		"2. ERROR in p\\F.java (at line 13)\n" + 
4735
		"2. ERROR in p\\F.java (at line 13)\n" + 
Lines 4844-4850 Link Here
4844
		"----------\n" + 
4844
		"----------\n" + 
4845
		"2. ERROR in p\\New.java (at line 8)\n" + 
4845
		"2. ERROR in p\\New.java (at line 8)\n" + 
4846
		"	super(t);\n" + 
4846
		"	super(t);\n" + 
4847
		"	^^^^^^^^\n" + 
4847
		"	^^^^^^^^^\n" + 
4848
		"The constructor Object(String) is undefined\n" + 
4848
		"The constructor Object(String) is undefined\n" + 
4849
		"----------\n"
4849
		"----------\n"
4850
	);
4850
	);
Lines 5526-5532 Link Here
5526
		"----------\n" + 
5526
		"----------\n" + 
5527
		"1. ERROR in p\\ADA.java (at line 8)\n" + 
5527
		"1. ERROR in p\\ADA.java (at line 8)\n" + 
5528
		"	if (i > 10) return;\n" + 
5528
		"	if (i > 10) return;\n" + 
5529
		"	            ^^^^^^\n" + 
5529
		"	            ^^^^^^^\n" + 
5530
		"Cannot return from within an initializer\n" + 
5530
		"Cannot return from within an initializer\n" + 
5531
		"----------\n"
5531
		"----------\n"
5532
	);
5532
	);
Lines 5597-5603 Link Here
5597
		"----------\n" + 
5597
		"----------\n" + 
5598
		"1. ERROR in p\\B.java (at line 16)\n" + 
5598
		"1. ERROR in p\\B.java (at line 16)\n" + 
5599
		"	return 3;\n" + 
5599
		"	return 3;\n" + 
5600
		"	^^^^^^^^\n" + 
5600
		"	^^^^^^^^^\n" + 
5601
		"Unreachable code\n" + 
5601
		"Unreachable code\n" + 
5602
		"----------\n" + 
5602
		"----------\n" + 
5603
		"----------\n" + 
5603
		"----------\n" + 
Lines 5710-5716 Link Here
5710
		"----------\n" + 
5710
		"----------\n" + 
5711
		"1. ERROR in p\\A5.java (at line 7)\n" + 
5711
		"1. ERROR in p\\A5.java (at line 7)\n" + 
5712
		"	return;\n" + 
5712
		"	return;\n" + 
5713
		"	^^^^^^\n" + 
5713
		"	^^^^^^^\n" + 
5714
		"This method must return a result of type int\n" + 
5714
		"This method must return a result of type int\n" + 
5715
		"----------\n"
5715
		"----------\n"
5716
	);
5716
	);
Lines 6876-6882 Link Here
6876
		"----------\n" + 
6876
		"----------\n" + 
6877
		"2. ERROR in p\\BC.java (at line 11)\n" + 
6877
		"2. ERROR in p\\BC.java (at line 11)\n" + 
6878
		"	this(arg1);\n" + 
6878
		"	this(arg1);\n" + 
6879
		"	^^^^^^^^^^\n" + 
6879
		"	^^^^^^^^^^^\n" + 
6880
		"Recursive constructor invocation BC_a(int)\n" + 
6880
		"Recursive constructor invocation BC_a(int)\n" + 
6881
		"----------\n" + 
6881
		"----------\n" + 
6882
		"3. WARNING in p\\BC.java (at line 12)\n" + 
6882
		"3. WARNING in p\\BC.java (at line 12)\n" + 
Lines 6886-6892 Link Here
6886
		"----------\n" + 
6886
		"----------\n" + 
6887
		"4. ERROR in p\\BC.java (at line 15)\n" + 
6887
		"4. ERROR in p\\BC.java (at line 15)\n" + 
6888
		"	this(arg1,2);\n" + 
6888
		"	this(arg1,2);\n" + 
6889
		"	^^^^^^^^^^^^\n" + 
6889
		"	^^^^^^^^^^^^^\n" + 
6890
		"Recursive constructor invocation BC_a(int, int)\n" + 
6890
		"Recursive constructor invocation BC_a(int, int)\n" + 
6891
		"----------\n"
6891
		"----------\n"
6892
	);
6892
	);
Lines 7299-7305 Link Here
7299
		"----------\n" + 
7299
		"----------\n" + 
7300
		"3. ERROR in p\\I.java (at line 6)\n" + 
7300
		"3. ERROR in p\\I.java (at line 6)\n" + 
7301
		"	return;        // Wrong.\n" + 
7301
		"	return;        // Wrong.\n" + 
7302
		"	^^^^^^\n" + 
7302
		"	^^^^^^^\n" + 
7303
		"Cannot return from within an initializer\n" + 
7303
		"Cannot return from within an initializer\n" + 
7304
		"----------\n"
7304
		"----------\n"
7305
	);
7305
	);
Lines 8692-8698 Link Here
8692
		"----------\n" + 
8692
		"----------\n" + 
8693
		"2. ERROR in p\\o\\clss21706_a.java (at line 8)\n" + 
8693
		"2. ERROR in p\\o\\clss21706_a.java (at line 8)\n" + 
8694
		"	super(meth());\n" + 
8694
		"	super(meth());\n" + 
8695
		"	^^^^^^^^^^^^^\n" + 
8695
		"	^^^^^^^^^^^^^^\n" + 
8696
		"The constructor clss21706_b(int) is undefined\n" + 
8696
		"The constructor clss21706_b(int) is undefined\n" + 
8697
		"----------\n" + 
8697
		"----------\n" + 
8698
		"3. ERROR in p\\o\\clss21706_a.java (at line 8)\n" + 
8698
		"3. ERROR in p\\o\\clss21706_a.java (at line 8)\n" + 
Lines 8707-8713 Link Here
8707
		"----------\n" + 
8707
		"----------\n" + 
8708
		"5. ERROR in p\\o\\clss21706_a.java (at line 14)\n" + 
8708
		"5. ERROR in p\\o\\clss21706_a.java (at line 14)\n" + 
8709
		"	super(meth());\n" + 
8709
		"	super(meth());\n" + 
8710
		"	^^^^^^^^^^^^^\n" + 
8710
		"	^^^^^^^^^^^^^^\n" + 
8711
		"Constructor call must be the first statement in a constructor\n" + 
8711
		"Constructor call must be the first statement in a constructor\n" + 
8712
		"----------\n"
8712
		"----------\n"
8713
	);
8713
	);
Lines 8959-8965 Link Here
8959
		"----------\n" + 
8959
		"----------\n" + 
8960
		"4. ERROR in p\\h\\X1.java (at line 6)\n" + 
8960
		"4. ERROR in p\\h\\X1.java (at line 6)\n" + 
8961
		"	throw new Exception();\n" + 
8961
		"	throw new Exception();\n" + 
8962
		"	^^^^^^^^^^^^^^^^^^^^^\n" + 
8962
		"	^^^^^^^^^^^^^^^^^^^^^^\n" + 
8963
		"Unhandled exception type Exception\n" + 
8963
		"Unhandled exception type Exception\n" + 
8964
		"----------\n" + 
8964
		"----------\n" + 
8965
		"5. ERROR in p\\h\\X1.java (at line 9)\n" + 
8965
		"5. ERROR in p\\h\\X1.java (at line 9)\n" + 
Lines 10532-10538 Link Here
10532
		"----------\n" + 
10532
		"----------\n" + 
10533
		"1. ERROR in p\\X.java (at line 8)\n" + 
10533
		"1. ERROR in p\\X.java (at line 8)\n" + 
10534
		"	continue a;	\n" + 
10534
		"	continue a;	\n" + 
10535
		"	^^^^^^^^^^\n" + 
10535
		"	^^^^^^^^^^^\n" + 
10536
		"continue cannot be used outside of a loop\n" + 
10536
		"continue cannot be used outside of a loop\n" + 
10537
		"----------\n"
10537
		"----------\n"
10538
	);
10538
	);
Lines 11667-11673 Link Here
11667
		"----------\n" + 
11667
		"----------\n" + 
11668
		"2. ERROR in X.java (at line 4)\n" + 
11668
		"2. ERROR in X.java (at line 4)\n" + 
11669
		"	b: break;					//ko					\n" + 
11669
		"	b: break;					//ko					\n" + 
11670
		"	   ^^^^^\n" + 
11670
		"	   ^^^^^^\n" + 
11671
		"break cannot be used outside of a loop or a switch\n" + 
11671
		"break cannot be used outside of a loop or a switch\n" + 
11672
		"----------\n" + 
11672
		"----------\n" + 
11673
		"3. WARNING in X.java (at line 5)\n" + 
11673
		"3. WARNING in X.java (at line 5)\n" + 
Lines 11682-11688 Link Here
11682
		"----------\n" + 
11682
		"----------\n" + 
11683
		"5. ERROR in X.java (at line 6)\n" + 
11683
		"5. ERROR in X.java (at line 6)\n" + 
11684
		"	d: continue;				//ko					\n" + 
11684
		"	d: continue;				//ko					\n" + 
11685
		"	   ^^^^^^^^\n" + 
11685
		"	   ^^^^^^^^^\n" + 
11686
		"continue cannot be used outside of a loop\n" + 
11686
		"continue cannot be used outside of a loop\n" + 
11687
		"----------\n" + 
11687
		"----------\n" + 
11688
		"6. WARNING in X.java (at line 7)\n" + 
11688
		"6. WARNING in X.java (at line 7)\n" + 
Lines 11708-11714 Link Here
11708
		"----------\n" + 
11708
		"----------\n" + 
11709
		"1. ERROR in X.java (at line 4)\n" + 
11709
		"1. ERROR in X.java (at line 4)\n" + 
11710
		"	bar(); //1	\n" + 
11710
		"	bar(); //1	\n" + 
11711
		"	^^^^^\n" + 
11711
		"	^^^^^^\n" + 
11712
		"Unreachable code\n" + 
11712
		"Unreachable code\n" + 
11713
		"----------\n");
11713
		"----------\n");
11714
}
11714
}
Lines 11879-11885 Link Here
11879
		"----------\n" + 
11879
		"----------\n" + 
11880
		"3. ERROR in TestEclipseBug.java (at line 12)\n" + 
11880
		"3. ERROR in TestEclipseBug.java (at line 12)\n" + 
11881
		"	this(objEntityName); // recursive constructor call	\n" + 
11881
		"	this(objEntityName); // recursive constructor call	\n" + 
11882
		"	^^^^^^^^^^^^^^^^^^^\n" + 
11882
		"	^^^^^^^^^^^^^^^^^^^^\n" + 
11883
		"Recursive constructor invocation TestEclipseBug(String)\n" + 
11883
		"Recursive constructor invocation TestEclipseBug(String)\n" + 
11884
		"----------\n");
11884
		"----------\n");
11885
}
11885
}
Lines 13624-13630 Link Here
13624
		"----------\n" + 
13624
		"----------\n" + 
13625
		"1. ERROR in X.java (at line 4)\n" + 
13625
		"1. ERROR in X.java (at line 4)\n" + 
13626
		"	super();\n" + 
13626
		"	super();\n" + 
13627
		"	^^^^^^^\n" + 
13627
		"	^^^^^^^^\n" + 
13628
		"Constructor call must be the first statement in a constructor\n" + 
13628
		"Constructor call must be the first statement in a constructor\n" + 
13629
		"----------\n");
13629
		"----------\n");
13630
}
13630
}
Lines 13641-13647 Link Here
13641
		"----------\n" + 
13641
		"----------\n" + 
13642
		"1. ERROR in X.java (at line 3)\n" + 
13642
		"1. ERROR in X.java (at line 3)\n" + 
13643
		"	super();\n" + 
13643
		"	super();\n" + 
13644
		"	^^^^^^^\n" + 
13644
		"	^^^^^^^^\n" + 
13645
		"Constructor call must be the first statement in a constructor\n" + 
13645
		"Constructor call must be the first statement in a constructor\n" + 
13646
		"----------\n");
13646
		"----------\n");
13647
}
13647
}
Lines 13663-13669 Link Here
13663
		"----------\n" + 
13663
		"----------\n" + 
13664
		"2. ERROR in X.java (at line 3)\n" + 
13664
		"2. ERROR in X.java (at line 3)\n" + 
13665
		"	super();\n" + 
13665
		"	super();\n" + 
13666
		"	^^^^^^^\n" + 
13666
		"	^^^^^^^^\n" + 
13667
		"Constructor call must be the first statement in a constructor\n" + 
13667
		"Constructor call must be the first statement in a constructor\n" + 
13668
		"----------\n");
13668
		"----------\n");
13669
}
13669
}
Lines 14500-14511 Link Here
14500
		"----------\n" + 
14500
		"----------\n" + 
14501
		"8. ERROR in X.java (at line 24)\n" + 
14501
		"8. ERROR in X.java (at line 24)\n" + 
14502
		"	super(b);\n" + 
14502
		"	super(b);\n" + 
14503
		"	^^^^^^^^\n" + 
14503
		"	^^^^^^^^^\n" + 
14504
		"The constructor Object(A.B) is undefined\n" + 
14504
		"The constructor Object(A.B) is undefined\n" + 
14505
		"----------\n" + 
14505
		"----------\n" + 
14506
		"9. ERROR in X.java (at line 28)\n" + 
14506
		"9. ERROR in X.java (at line 28)\n" + 
14507
		"	super(b);\n" + 
14507
		"	super(b);\n" + 
14508
		"	^^^^^^^^\n" + 
14508
		"	^^^^^^^^^\n" + 
14509
		"The constructor Object(A.B) is undefined\n" + 
14509
		"The constructor Object(A.B) is undefined\n" + 
14510
		"----------\n",
14510
		"----------\n",
14511
		null,
14511
		null,
Lines 15267-15273 Link Here
15267
		"----------\n" + 
15267
		"----------\n" + 
15268
		"5. ERROR in X.java (at line 7)\n" + 
15268
		"5. ERROR in X.java (at line 7)\n" + 
15269
		"	return ; // semicolon5\n" + 
15269
		"	return ; // semicolon5\n" + 
15270
		"	^^^^^^^\n" + 
15270
		"	^^^^^^^^\n" + 
15271
		"Unreachable code\n" + 
15271
		"Unreachable code\n" + 
15272
		"----------\n" + 
15272
		"----------\n" + 
15273
		"6. WARNING in X.java (at line 8)\n" + 
15273
		"6. WARNING in X.java (at line 8)\n" + 
Lines 15335-15341 Link Here
15335
		"----------\n" + 
15335
		"----------\n" + 
15336
		"1. ERROR in X.java (at line 12)\n" + 
15336
		"1. ERROR in X.java (at line 12)\n" + 
15337
		"	} else return;\n" + 
15337
		"	} else return;\n" + 
15338
		"	       ^^^^^^\n" + 
15338
		"	       ^^^^^^^\n" + 
15339
		"Statement unnecessarily nested within else clause. The corresponding then clause does not complete normally\n" + 
15339
		"Statement unnecessarily nested within else clause. The corresponding then clause does not complete normally\n" + 
15340
		"----------\n",
15340
		"----------\n",
15341
		null,
15341
		null,
Lines 16033-16039 Link Here
16033
		"----------\n" + 
16033
		"----------\n" + 
16034
		"1. ERROR in X.java (at line 7)\n" + 
16034
		"1. ERROR in X.java (at line 7)\n" + 
16035
		"	break label2;\n" + 
16035
		"	break label2;\n" + 
16036
		"	^^^^^^^^^^^^\n" + 
16036
		"	^^^^^^^^^^^^^\n" + 
16037
		"The label label2 is missing\n" + 
16037
		"The label label2 is missing\n" + 
16038
		"----------\n");
16038
		"----------\n");
16039
}
16039
}
(-)Eclipse Java Tests Compiler/org/eclipse/jdt/tests/compiler/regression/ObjectTest.java (-1 / +1 lines)
Lines 37-43 Link Here
37
		"----------\n" + 
37
		"----------\n" + 
38
		"1. ERROR in java\\lang\\Object.java (at line 7)\n" + 
38
		"1. ERROR in java\\lang\\Object.java (at line 7)\n" + 
39
		"	super();\n" + 
39
		"	super();\n" + 
40
		"	^^^^^^^\n" + 
40
		"	^^^^^^^^\n" + 
41
		"super cannot be used in java.lang.Object\n" + 
41
		"super cannot be used in java.lang.Object\n" + 
42
		"----------\n"
42
		"----------\n"
43
	);
43
	);
(-)compiler/org/eclipse/jdt/internal/compiler/ast/ThrowStatement.java (-3 / +3 lines)
Lines 24-33 Link Here
24
	public Expression exception;
24
	public Expression exception;
25
	public TypeBinding exceptionType;
25
	public TypeBinding exceptionType;
26
26
27
public ThrowStatement(Expression exception, int startPosition) {
27
public ThrowStatement(Expression exception, int sourceStart, int sourceEnd) {
28
	this.exception = exception;
28
	this.exception = exception;
29
	this.sourceStart = startPosition;
29
	this.sourceStart = sourceStart;
30
	this.sourceEnd = exception.sourceEnd;
30
	this.sourceEnd = sourceEnd;
31
}
31
}
32
32
33
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) {
33
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) {
(-)compiler/org/eclipse/jdt/internal/compiler/ast/DoStatement.java (-3 / +3 lines)
Lines 26-35 Link Here
26
	// for local variables table attributes
26
	// for local variables table attributes
27
	int mergedInitStateIndex = -1;
27
	int mergedInitStateIndex = -1;
28
28
29
public DoStatement(Expression condition, Statement action, int s, int e) {
29
public DoStatement(Expression condition, Statement action, int sourceStart, int sourceEnd) {
30
30
31
	this.sourceStart = s;
31
	this.sourceStart = sourceStart;
32
	this.sourceEnd = e;
32
	this.sourceEnd = sourceEnd;
33
	this.condition = condition;
33
	this.condition = condition;
34
	this.action = action;
34
	this.action = action;
35
	// remember useful empty statement
35
	// remember useful empty statement
(-)compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java (-10 / +10 lines)
Lines 3411-3417 Link Here
3411
			break;
3411
			break;
3412
	}
3412
	}
3413
	pushOnAstStack(ecc);
3413
	pushOnAstStack(ecc);
3414
	ecc.sourceEnd = this.endPosition;
3414
	ecc.sourceEnd = this.endStatementPosition;
3415
}
3415
}
3416
protected void consumeExplicitConstructorInvocationWithTypeArguments(int flag, int recFlag) {
3416
protected void consumeExplicitConstructorInvocationWithTypeArguments(int flag, int recFlag) {
3417
3417
Lines 3452-3458 Link Here
3452
	}
3452
	}
3453
	
3453
	
3454
	pushOnAstStack(ecc);
3454
	pushOnAstStack(ecc);
3455
	ecc.sourceEnd = this.endPosition;
3455
	ecc.sourceEnd = this.endStatementPosition;
3456
}
3456
}
3457
protected void consumeExpressionStatement() {
3457
protected void consumeExpressionStatement() {
3458
	// ExpressionStatement ::= StatementExpression ';'
3458
	// ExpressionStatement ::= StatementExpression ';'
Lines 6662-6668 Link Here
6662
	// BreakStatement ::= 'break' ';'
6662
	// BreakStatement ::= 'break' ';'
6663
	// break pushs a position on this.intStack in case there is no label
6663
	// break pushs a position on this.intStack in case there is no label
6664
6664
6665
	pushOnAstStack(new BreakStatement(null, this.intStack[this.intPtr--], this.endPosition));
6665
	pushOnAstStack(new BreakStatement(null, this.intStack[this.intPtr--], this.endStatementPosition));
6666
	
6666
	
6667
	if (this.pendingRecoveredType != null) {
6667
	if (this.pendingRecoveredType != null) {
6668
		// Used only in statements recovery.
6668
		// Used only in statements recovery.
Lines 6685-6691 Link Here
6685
		new BreakStatement(
6685
		new BreakStatement(
6686
			this.identifierStack[this.identifierPtr--],
6686
			this.identifierStack[this.identifierPtr--],
6687
			this.intStack[this.intPtr--],
6687
			this.intStack[this.intPtr--],
6688
			this.endPosition)); 
6688
			this.endStatementPosition)); 
6689
	this.identifierLengthPtr--;
6689
	this.identifierLengthPtr--;
6690
}
6690
}
6691
protected void consumeStatementCatch() {
6691
protected void consumeStatementCatch() {
Lines 6708-6714 Link Here
6708
		new ContinueStatement(
6708
		new ContinueStatement(
6709
			null,
6709
			null,
6710
			this.intStack[this.intPtr--],
6710
			this.intStack[this.intPtr--],
6711
			this.endPosition));
6711
			this.endStatementPosition));
6712
}
6712
}
6713
protected void consumeStatementContinueWithLabel() {
6713
protected void consumeStatementContinueWithLabel() {
6714
	// ContinueStatement ::= 'continue' Identifier ';'
6714
	// ContinueStatement ::= 'continue' Identifier ';'
Lines 6718-6724 Link Here
6718
		new ContinueStatement(
6718
		new ContinueStatement(
6719
			this.identifierStack[this.identifierPtr--], 
6719
			this.identifierStack[this.identifierPtr--], 
6720
			this.intStack[this.intPtr--], 
6720
			this.intStack[this.intPtr--], 
6721
			this.endPosition)); 
6721
			this.endStatementPosition)); 
6722
	this.identifierLengthPtr--;
6722
	this.identifierLengthPtr--;
6723
}
6723
}
6724
protected void consumeStatementDo() {
6724
protected void consumeStatementDo() {
Lines 6734-6740 Link Here
6734
			this.expressionStack[this.expressionPtr--], 
6734
			this.expressionStack[this.expressionPtr--], 
6735
			statement, 
6735
			statement, 
6736
			this.intStack[this.intPtr--], 
6736
			this.intStack[this.intPtr--], 
6737
			this.endPosition); 
6737
			this.endStatementPosition); 
6738
}
6738
}
6739
protected void consumeStatementExpressionList() {
6739
protected void consumeStatementExpressionList() {
6740
	// StatementExpressionList ::= StatementExpressionList ',' StatementExpression
6740
	// StatementExpressionList ::= StatementExpressionList ',' StatementExpression
Lines 6858-6867 Link Here
6858
			new ReturnStatement(
6858
			new ReturnStatement(
6859
				this.expressionStack[this.expressionPtr--], 
6859
				this.expressionStack[this.expressionPtr--], 
6860
				this.intStack[this.intPtr--], 
6860
				this.intStack[this.intPtr--], 
6861
				this.endPosition)
6861
				this.endStatementPosition)
6862
		);
6862
		);
6863
	} else {
6863
	} else {
6864
		pushOnAstStack(new ReturnStatement(null, this.intStack[this.intPtr--], this.endPosition));
6864
		pushOnAstStack(new ReturnStatement(null, this.intStack[this.intPtr--], this.endStatementPosition));
6865
	}
6865
	}
6866
}
6866
}
6867
protected void consumeStatementSwitch() {
6867
protected void consumeStatementSwitch() {
Lines 6920-6926 Link Here
6920
protected void consumeStatementThrow() {
6920
protected void consumeStatementThrow() {
6921
	// ThrowStatement ::= 'throw' Expression ';'
6921
	// ThrowStatement ::= 'throw' Expression ';'
6922
	this.expressionLengthPtr--;
6922
	this.expressionLengthPtr--;
6923
	pushOnAstStack(new ThrowStatement(this.expressionStack[this.expressionPtr--], this.intStack[this.intPtr--]));
6923
	pushOnAstStack(new ThrowStatement(this.expressionStack[this.expressionPtr--], this.intStack[this.intPtr--], this.endStatementPosition));
6924
}
6924
}
6925
protected void consumeStatementTry(boolean withFinally) {
6925
protected void consumeStatementTry(boolean withFinally) {
6926
	//TryStatement ::= 'try'  Block Catches
6926
	//TryStatement ::= 'try'  Block Catches
(-)compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java (-2 / +12 lines)
Lines 6086-6097 Link Here
6086
		location.sourceEnd);
6086
		location.sourceEnd);
6087
}
6087
}
6088
public void unreachableCode(Statement statement) {
6088
public void unreachableCode(Statement statement) {
6089
	int sourceStart = statement.sourceStart;
6090
	int sourceEnd = statement.sourceEnd;
6091
	if (statement instanceof LocalDeclaration) {
6092
		LocalDeclaration declaration = (LocalDeclaration) statement;
6093
		sourceStart = declaration.declarationSourceStart;
6094
		sourceEnd = declaration.declarationSourceEnd;
6095
	} else if (statement instanceof Expression) {
6096
		int statemendEnd = ((Expression) statement).statementEnd;
6097
		if (statemendEnd != -1) sourceEnd = statemendEnd;
6098
	}
6089
	this.handle(
6099
	this.handle(
6090
		IProblem.CodeCannotBeReached,
6100
		IProblem.CodeCannotBeReached,
6091
		NoArgument,
6101
		NoArgument,
6092
		NoArgument,
6102
		NoArgument,
6093
		statement.sourceStart,
6103
		sourceStart,
6094
		statement.sourceEnd);
6104
		sourceEnd);
6095
}
6105
}
6096
public void unresolvableReference(NameReference nameRef, Binding binding) {
6106
public void unresolvableReference(NameReference nameRef, Binding binding) {
6097
/* also need to check that the searchedType is the receiver type
6107
/* also need to check that the searchedType is the receiver type
(-)dom/org/eclipse/jdt/core/dom/ASTConverter.java (-34 / +6 lines)
Lines 1147-1153 Link Here
1147
			retrieveIdentifierAndSetPositions(statement.sourceStart, statement.sourceEnd, name);
1147
			retrieveIdentifierAndSetPositions(statement.sourceStart, statement.sourceEnd, name);
1148
			breakStatement.setLabel(name);
1148
			breakStatement.setLabel(name);
1149
		}
1149
		}
1150
		retrieveSemiColonPosition(breakStatement);
1151
		return breakStatement;
1150
		return breakStatement;
1152
	}
1151
	}
1153
		
1152
		
Lines 1349-1355 Link Here
1349
			retrieveIdentifierAndSetPositions(statement.sourceStart, statement.sourceEnd, name);
1348
			retrieveIdentifierAndSetPositions(statement.sourceStart, statement.sourceEnd, name);
1350
			continueStatement.setLabel(name);
1349
			continueStatement.setLabel(name);
1351
		}
1350
		}
1352
		retrieveSemiColonPosition(continueStatement);
1353
		return continueStatement;
1351
		return continueStatement;
1354
	}
1352
	}
1355
	
1353
	
Lines 1360-1366 Link Here
1360
		final Statement action = convert(statement.action);
1358
		final Statement action = convert(statement.action);
1361
		if (action == null) return null;
1359
		if (action == null) return null;
1362
		doStatement.setBody(action);
1360
		doStatement.setBody(action);
1363
		retrieveSemiColonPosition(doStatement);
1364
		return doStatement;
1361
		return doStatement;
1365
	}
1362
	}
1366
1363
Lines 1516-1522 Link Here
1516
			newStatement = constructorInvocation;
1513
			newStatement = constructorInvocation;
1517
		}
1514
		}
1518
		newStatement.setSourceRange(sourceStart, statement.sourceEnd - sourceStart + 1);
1515
		newStatement.setSourceRange(sourceStart, statement.sourceEnd - sourceStart + 1);
1519
		retrieveSemiColonPosition(newStatement);
1520
		if (this.resolveBindings) {
1516
		if (this.resolveBindings) {
1521
			recordNodes(newStatement, statement);
1517
			recordNodes(newStatement, statement);
1522
		}
1518
		}
Lines 2343-2349 Link Here
2343
		if (statement.expression != null) {
2339
		if (statement.expression != null) {
2344
			returnStatement.setExpression(convert(statement.expression));
2340
			returnStatement.setExpression(convert(statement.expression));
2345
		}
2341
		}
2346
		retrieveSemiColonPosition(returnStatement);
2347
		return returnStatement;
2342
		return returnStatement;
2348
	}
2343
	}
2349
	
2344
	
Lines 2477-2487 Link Here
2477
			return convert((org.eclipse.jdt.internal.compiler.ast.WhileStatement) statement);
2472
			return convert((org.eclipse.jdt.internal.compiler.ast.WhileStatement) statement);
2478
		}
2473
		}
2479
		if (statement instanceof org.eclipse.jdt.internal.compiler.ast.Expression) {
2474
		if (statement instanceof org.eclipse.jdt.internal.compiler.ast.Expression) {
2480
			final Expression expr = convert((org.eclipse.jdt.internal.compiler.ast.Expression) statement);
2475
			org.eclipse.jdt.internal.compiler.ast.Expression statement2 = (org.eclipse.jdt.internal.compiler.ast.Expression) statement;
2476
			final Expression expr = convert(statement2);
2481
			final ExpressionStatement stmt = new ExpressionStatement(this.ast);
2477
			final ExpressionStatement stmt = new ExpressionStatement(this.ast);
2482
			stmt.setExpression(expr);
2478
			stmt.setExpression(expr);
2483
			stmt.setSourceRange(expr.getStartPosition(), expr.getLength());
2479
			int sourceStart = expr.getStartPosition();
2484
			retrieveSemiColonPosition(stmt);
2480
			int sourceEnd = statement2.statementEnd;
2481
			stmt.setSourceRange(sourceStart, sourceEnd - sourceStart + 1);
2485
			return stmt;
2482
			return stmt;
2486
		}
2483
		}
2487
		return createFakeEmptyStatement(statement);
2484
		return createFakeEmptyStatement(statement);
Lines 2554-2560 Link Here
2554
		final ThrowStatement throwStatement = new ThrowStatement(this.ast);
2551
		final ThrowStatement throwStatement = new ThrowStatement(this.ast);
2555
		throwStatement.setSourceRange(statement.sourceStart, statement.sourceEnd - statement.sourceStart + 1);	
2552
		throwStatement.setSourceRange(statement.sourceStart, statement.sourceEnd - statement.sourceStart + 1);	
2556
		throwStatement.setExpression(convert(statement.exception));
2553
		throwStatement.setExpression(convert(statement.exception));
2557
		retrieveSemiColonPosition(throwStatement);
2558
		return throwStatement;
2554
		return throwStatement;
2559
	}
2555
	}
2560
		
2556
		
Lines 4254-4284 Link Here
4254
		}
4250
		}
4255
		return -1;
4251
		return -1;
4256
	}
4252
	}
4257
	
4253
4258
	/*
4259
	 * This method is used to set the right end position for expression
4260
	 * statement. The actual AST nodes don't include the trailing semicolon.
4261
	 * This method fixes the length of the corresponding node.
4262
	 */
4263
	protected void retrieveSemiColonPosition(ASTNode node) {
4264
		int start = node.getStartPosition();
4265
		int length = node.getLength();
4266
		int end = start + length;
4267
		this.scanner.resetTo(end, this.compilationUnitSourceLength);
4268
		try {
4269
			int token;
4270
			while ((token = this.scanner.getNextToken()) != TerminalTokens.TokenNameEOF) {
4271
				switch(token) {
4272
					case TerminalTokens.TokenNameSEMICOLON:
4273
						node.setSourceRange(start, this.scanner.currentPosition - start);
4274
						return;
4275
				}
4276
			}
4277
		} catch(InvalidInputException e) {
4278
			// ignore
4279
		}
4280
	}
4281
	
4282
	/**
4254
	/**
4283
	 * This method is used to retrieve the start position of the block.
4255
	 * This method is used to retrieve the start position of the block.
4284
	 * @return int the dimension found, -1 if none
4256
	 * @return int the dimension found, -1 if none

Return to bug 138897