View | Details | Raw Unified | Return to bug 348186
Collapse All | Expand All

(-)a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java (-6 / +6 lines)
Lines 6877-6883 Link Here
6877
		"3. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 13)\n" +
6877
		"3. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 13)\n" +
6878
		"	} catch (E1 e1) {\n" +
6878
		"	} catch (E1 e1) {\n" +
6879
		"	         ^^\n" +
6879
		"	         ^^\n" +
6880
		"Unreachable catch block for E1. Only more specific exceptions are thrown and handled by previous catch block(s).\n" +
6880
		"Unreachable catch block for E1. Only more specific exceptions are thrown and they are handled by previous catch block(s).\n" +
6881
		"----------\n" +
6881
		"----------\n" +
6882
		"3 problems (3 warnings)",
6882
		"3 problems (3 warnings)",
6883
		true);
6883
		true);
Lines 6945-6951 Link Here
6945
		"4. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 13)\n" +
6945
		"4. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 13)\n" +
6946
		"	} catch (E1 e1) {\n" +
6946
		"	} catch (E1 e1) {\n" +
6947
		"	         ^^\n" +
6947
		"	         ^^\n" +
6948
		"Unreachable catch block for E1. Only more specific exceptions are thrown and handled by previous catch block(s).\n" +
6948
		"Unreachable catch block for E1. Only more specific exceptions are thrown and they are handled by previous catch block(s).\n" +
6949
		"----------\n" +
6949
		"----------\n" +
6950
		"4 problems (4 warnings)",
6950
		"4 problems (4 warnings)",
6951
		true);
6951
		true);
Lines 7080-7086 Link Here
7080
		"1. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 13)\n" +
7080
		"1. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 13)\n" +
7081
		"	} catch (E1 e1) {\n" +
7081
		"	} catch (E1 e1) {\n" +
7082
		"	         ^^\n" +
7082
		"	         ^^\n" +
7083
		"Unreachable catch block for E1. Only more specific exceptions are thrown and handled by previous catch block(s).\n" +
7083
		"Unreachable catch block for E1. Only more specific exceptions are thrown and they are handled by previous catch block(s).\n" +
7084
		"----------\n" +
7084
		"----------\n" +
7085
		"1 problem (1 warning)",
7085
		"1 problem (1 warning)",
7086
		true);
7086
		true);
Lines 7180-7186 Link Here
7180
		"3. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 13)\n" +
7180
		"3. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 13)\n" +
7181
		"	} catch (E1 e1) {\n" +
7181
		"	} catch (E1 e1) {\n" +
7182
		"	         ^^\n" +
7182
		"	         ^^\n" +
7183
		"Unreachable catch block for E1. Only more specific exceptions are thrown and handled by previous catch block(s).\n" +
7183
		"Unreachable catch block for E1. Only more specific exceptions are thrown and they are handled by previous catch block(s).\n" +
7184
		"----------\n" +
7184
		"----------\n" +
7185
		"3 problems (3 warnings)",
7185
		"3 problems (3 warnings)",
7186
		true);
7186
		true);
Lines 7235-7241 Link Here
7235
		"3. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 13)\n" +
7235
		"3. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 13)\n" +
7236
		"	} catch (E1 e1) {\n" +
7236
		"	} catch (E1 e1) {\n" +
7237
		"	         ^^\n" +
7237
		"	         ^^\n" +
7238
		"Unreachable catch block for E1. Only more specific exceptions are thrown and handled by previous catch block(s).\n" +
7238
		"Unreachable catch block for E1. Only more specific exceptions are thrown and they are handled by previous catch block(s).\n" +
7239
		"----------\n" +
7239
		"----------\n" +
7240
		"3 problems (3 warnings)",
7240
		"3 problems (3 warnings)",
7241
		true);
7241
		true);
Lines 7345-7351 Link Here
7345
		"3. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 13)\n" +
7345
		"3. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/X.java (at line 13)\n" +
7346
		"	} catch (E1 e1) {\n" +
7346
		"	} catch (E1 e1) {\n" +
7347
		"	         ^^\n" +
7347
		"	         ^^\n" +
7348
		"Unreachable catch block for E1. Only more specific exceptions are thrown and handled by previous catch block(s).\n" +
7348
		"Unreachable catch block for E1. Only more specific exceptions are thrown and they are handled by previous catch block(s).\n" +
7349
		"----------\n" +
7349
		"----------\n" +
7350
		"3 problems (3 warnings)",
7350
		"3 problems (3 warnings)",
7351
		true);
7351
		true);
(-)a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/TryStatementTest.java (-1 / +1 lines)
Lines 758-764 Link Here
758
		"1. ERROR in X.java (at line 6)\n" +
758
		"1. ERROR in X.java (at line 6)\n" +
759
		"	} catch(AX e) {\n" +
759
		"	} catch(AX e) {\n" +
760
		"	        ^^\n" +
760
		"	        ^^\n" +
761
		"Unreachable catch block for AX. Only more specific exceptions are thrown and handled by previous catch block(s).\n" +
761
		"Unreachable catch block for AX. Only more specific exceptions are thrown and they are handled by previous catch block(s).\n" +
762
		"----------\n" +
762
		"----------\n" +
763
		"2. WARNING in X.java (at line 10)\n" +
763
		"2. WARNING in X.java (at line 10)\n" +
764
		"	class AX extends Exception {}\n" +
764
		"	class AX extends Exception {}\n" +
(-)a/org.eclipse.jdt.core/buildnotes_jdt-core.html (-1 / +3 lines)
Lines 52-58 Link Here
52
<h2>What's new in this drop</h2>
52
<h2>What's new in this drop</h2>
53
53
54
<h3>Problem Reports Fixed</h3>
54
<h3>Problem Reports Fixed</h3>
55
<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=355838">355838</a>
55
<a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=348186">348186</a>
56
[compiler] Improve wording for the warning for masked/hidden catch block
57
<br><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=355838">355838</a>
56
[compiler] ecj compiles the code that javac6 rejects
58
[compiler] ecj compiles the code that javac6 rejects
57
<br><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=349326">349326</a>
59
<br><a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=349326">349326</a>
58
[1.7] new warning for missing try-with-resources
60
[1.7] new warning for missing try-with-resources
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/messages.properties (-1 / +1 lines)
Lines 145-151 Link Here
145
162 = Cannot return from within an initializer
145
162 = Cannot return from within an initializer
146
163 = Initializer does not complete normally
146
163 = Initializer does not complete normally
147
164 = Expression must return a value
147
164 = Expression must return a value
148
165 = Unreachable catch block for {0}. Only more specific exceptions are thrown and handled by previous catch block(s).
148
165 = Unreachable catch block for {0}. Only more specific exceptions are thrown and they are handled by previous catch block(s).
149
166 = The default case is already defined
149
166 = The default case is already defined
150
167 = Unreachable catch block for {0}. This exception is never thrown from the try statement body
150
167 = Unreachable catch block for {0}. This exception is never thrown from the try statement body
151
168 = Unhandled exception type {0}
151
168 = Unhandled exception type {0}

Return to bug 348186