1/*
2 * @test /nodynamiccopyright/
3 * @bug 5025346
4 * @summary Crash on cast
5 * @author gafter
6 *
7 * @compile/fail/ref=CastCrash.out -XDrawDiagnostics  CastCrash.java
8 */
9
10package cast.crash;
11
12import java.util.*;
13
14interface SN extends Set<Number>{}
15interface LI extends List<Integer>{}
16
17class CastCrash {
18    void f(LI l) {
19        SN sn = (SN) l;
20    }
21}
22