author | hannesw |
Tue, 22 Mar 2016 14:23:16 +0100 | |
changeset 36690 | 06b714373aa4 |
parent 30714 | 2bd9a474f287 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
30714
2bd9a474f287
8068465: Group 10e: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4821353 |
4 |
* @summary new warning "finally cannot complete normally" should not be enabled by default |
|
5 |
* @author gafter |
|
6 |
* |
|
30714
2bd9a474f287
8068465: Group 10e: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
7 |
* @compile/fail/ref=FinallyWarn.out -XDrawDiagnostics -Xlint:finally -Werror FinallyWarn.java |
10 | 8 |
* @compile -Werror FinallyWarn.java |
9 |
*/ |
|
10 |
||
11 |
class FinallyWarn { |
|
12 |
void f() { |
|
13 |
try { |
|
14 |
} finally { |
|
15 |
return; |
|
16 |
} |
|
17 |
} |
|
18 |
} |