author | katleman |
Thu, 21 Aug 2014 14:16:14 -0700 | |
changeset 25878 | 6d561031123e |
parent 25309 | dcd9a7e19669 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
25309
dcd9a7e19669
8044864: .out files for enum tests in tools/javac dir - part 1
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 5009601 |
4 |
* @summary enum's cannot be explicitly declared final |
|
5 |
* @author Joseph D. Darcy |
|
25309
dcd9a7e19669
8044864: .out files for enum tests in tools/javac dir - part 1
sogoel
parents:
5520
diff
changeset
|
6 |
* @compile/fail/ref=ExplicitlyFinalEnum2.out -XDrawDiagnostics ExplicitlyFinalEnum2.java |
10 | 7 |
*/ |
8 |
||
9 |
final enum ExplicitlyFinalEnum2 { |
|
10 |
FE { |
|
11 |
void foo() {return;} |
|
12 |
}; |
|
13 |
||
14 |
abstract void foo(); |
|
15 |
} |