author | sogoel |
Fri, 05 Sep 2014 16:43:00 -0700 | |
changeset 26528 | a1a7ad15183e |
parent 5520 | 86e4b9a9da40 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
26528
a1a7ad15183e
8055075: Group 9b: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4531500 |
4 |
* @summary Cascade of problems from duplicate class can cause compiler crash. |
|
5 |
* @author gafter |
|
6 |
* |
|
26528
a1a7ad15183e
8055075: Group 9b: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
7 |
* @compile/fail/ref=DuplicateClass.out -XDrawDiagnostics DuplicateClass.java |
10 | 8 |
*/ |
9 |
||
10 |
/** |
|
11 |
* Compiling this translation unit should fail; there is, after all, a |
|
12 |
* duplicate class. Nonetheless, the compiler should not crash while |
|
13 |
* processing it. |
|
14 |
*/ |
|
15 |
public class DuplicateClass { |
|
26528
a1a7ad15183e
8055075: Group 9b: golden files for tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
16 |
protected Object clone() { |
10 | 17 |
super.clone(); |
18 |
} |
|
19 |
} |
|
20 |
||
21 |
public class DuplicateClass {} |