author | mcimadamore |
Mon, 15 Nov 2010 13:50:53 +0000 | |
changeset 7214 | 26dfa4a69593 |
child 45413 | 75202c6b2c35 |
permissions | -rw-r--r-- |
7214
26dfa4a69593
6985719: Alike methods in interfaces (Inheritance and Overriding)
mcimadamore
parents:
diff
changeset
|
1 |
/* |
26dfa4a69593
6985719: Alike methods in interfaces (Inheritance and Overriding)
mcimadamore
parents:
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
26dfa4a69593
6985719: Alike methods in interfaces (Inheritance and Overriding)
mcimadamore
parents:
diff
changeset
|
3 |
* @bug 6985719 |
26dfa4a69593
6985719: Alike methods in interfaces (Inheritance and Overriding)
mcimadamore
parents:
diff
changeset
|
4 |
* @summary Alike methods in interfaces (Inheritance and Overriding) |
26dfa4a69593
6985719: Alike methods in interfaces (Inheritance and Overriding)
mcimadamore
parents:
diff
changeset
|
5 |
* @author mcimadamore |
26dfa4a69593
6985719: Alike methods in interfaces (Inheritance and Overriding)
mcimadamore
parents:
diff
changeset
|
6 |
* @compile/fail/ref=T6985719d.out -XDrawDiagnostics T6985719d.java |
26dfa4a69593
6985719: Alike methods in interfaces (Inheritance and Overriding)
mcimadamore
parents:
diff
changeset
|
7 |
*/ |
26dfa4a69593
6985719: Alike methods in interfaces (Inheritance and Overriding)
mcimadamore
parents:
diff
changeset
|
8 |
|
26dfa4a69593
6985719: Alike methods in interfaces (Inheritance and Overriding)
mcimadamore
parents:
diff
changeset
|
9 |
import java.util.List; |
26dfa4a69593
6985719: Alike methods in interfaces (Inheritance and Overriding)
mcimadamore
parents:
diff
changeset
|
10 |
|
26dfa4a69593
6985719: Alike methods in interfaces (Inheritance and Overriding)
mcimadamore
parents:
diff
changeset
|
11 |
class T6985719d { |
26dfa4a69593
6985719: Alike methods in interfaces (Inheritance and Overriding)
mcimadamore
parents:
diff
changeset
|
12 |
abstract class A { abstract void f(List<String> ls); } |
26dfa4a69593
6985719: Alike methods in interfaces (Inheritance and Overriding)
mcimadamore
parents:
diff
changeset
|
13 |
interface B<X> { void f(List<X> ls); } |
26dfa4a69593
6985719: Alike methods in interfaces (Inheritance and Overriding)
mcimadamore
parents:
diff
changeset
|
14 |
abstract class C extends A implements B<Integer> {} |
26dfa4a69593
6985719: Alike methods in interfaces (Inheritance and Overriding)
mcimadamore
parents:
diff
changeset
|
15 |
} |