author | mcimadamore |
Wed, 02 Apr 2008 11:20:52 +0100 | |
changeset 324 | c4029ac973a2 |
child 5213 | 6efe8a6d26eb |
permissions | -rw-r--r-- |
324
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
1 |
/* |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
2 |
* Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
4 |
* |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
8 |
* |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
13 |
* accompanied this code). |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
14 |
* |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
18 |
* |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
19 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
20 |
* CA 95054 USA or visit www.sun.com if you need additional information or |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
21 |
* have any questions. |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
22 |
*/ |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
23 |
|
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
24 |
/* |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
25 |
* @test |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
26 |
* @bug 6569789 |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
27 |
* @summary Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05 |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
28 |
* @compile T6569789.java |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
29 |
*/ |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
30 |
|
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
31 |
class C {} |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
32 |
interface I {} |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
33 |
interface I1 {} |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
34 |
interface I2 {} |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
35 |
class CT extends C implements I, I1, I2 {} |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
36 |
|
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
37 |
public class T6569789 { |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
38 |
public static void m() { |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
39 |
CT ct = new CT(); |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
40 |
testMethod(ct); |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
41 |
} |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
42 |
|
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
43 |
static <W extends C & I & I1 & I2, T extends W> void testMethod(T t) {} |
c4029ac973a2
6569789: Compiler test lang/TYPE/type153/type15304/type15304.html fails since jdk7 b05
mcimadamore
parents:
diff
changeset
|
44 |
} |