author | sogoel |
Fri, 15 May 2015 16:53:42 -0700 | |
changeset 30721 | 1024d425d97e |
parent 30718 | 391eff0516a6 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
30718
391eff0516a6
8074502: Group 13c: golden files for tests in tools/javac/generics dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 5025346 |
4 |
* @summary Crash on cast |
|
5 |
* @author gafter |
|
6 |
* |
|
30718
391eff0516a6
8074502: Group 13c: golden files for tests in tools/javac/generics dir
sogoel
parents:
5520
diff
changeset
|
7 |
* @compile/fail/ref=CastCrash.out -XDrawDiagnostics CastCrash.java |
10 | 8 |
*/ |
9 |
||
10 |
package cast.crash; |
|
11 |
||
12 |
import java.util.*; |
|
13 |
||
14 |
interface SN extends Set<Number>{} |
|
15 |
interface LI extends List<Integer>{} |
|
16 |
||
17 |
class CastCrash { |
|
18 |
void f(LI l) { |
|
19 |
SN sn = (SN) l; |
|
20 |
} |
|
21 |
} |