author | sogoel |
Wed, 01 Oct 2014 14:15:40 -0700 | |
changeset 26901 | 2c11dc81a5c8 |
parent 5520 | 86e4b9a9da40 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
26901
2c11dc81a5c8
8055783: Group 9e: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 5013488 |
4 |
* @summary Compiler AssertionError: com.sun.tools.javac.util.Bits.incl(Bits.java:73) |
|
5 |
* |
|
26901
2c11dc81a5c8
8055783: Group 9e: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
6 |
* @compile/fail/ref=UseEnum.out -XDrawDiagnostics UseEnum.java |
10 | 7 |
*/ |
8 |
||
9 |
import static java.lang.System.out; |
|
10 |
||
11 |
class UseEnum { |
|
26901
2c11dc81a5c8
8055783: Group 9e: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
12 |
enum Animal {cat, dog, bird, fish}; |
10 | 13 |
public static void main(String args[]) { |
14 |
Animal pet; |
|
15 |
||
16 |
pet = Animal.cat; |
|
17 |
out.println(pet); |
|
18 |
||
19 |
for (Animal beast : beast.values()) |
|
20 |
out.println(pet); |
|
21 |
} |
|
22 |
} |