author | mcimadamore |
Fri, 24 Oct 2008 12:46:51 +0100 | |
changeset 1535 | a64c289fe413 |
child 5520 | 86e4b9a9da40 |
permissions | -rw-r--r-- |
1535
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
1 |
/* |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
2 |
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
4 |
* |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
8 |
* |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
13 |
* accompanied this code). |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
14 |
* |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
18 |
* |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
19 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
20 |
* CA 95054 USA or visit www.sun.com if you need additional information or |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
21 |
* have any questions. |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
22 |
*/ |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
23 |
|
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
24 |
/* |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
25 |
* @test |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
26 |
* @bug 6762569 |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
27 |
* @summary Javac crashes with AssertionError in Types.containedBy |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
28 |
* @compile/fail T6762569b.java |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
29 |
*/ |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
30 |
import java.util.*; |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
31 |
|
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
32 |
class T6762569b { |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
33 |
<T> void m(T t, List<? super List<T>> list) {} |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
34 |
|
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
35 |
void test(List<? super List<? extends Number>> list) { |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
36 |
m("", list); |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
37 |
} |
a64c289fe413
6762569: Javac crashes with AssertionError in Types.containedBy
mcimadamore
parents:
diff
changeset
|
38 |
} |