author | sogoel |
Fri, 15 May 2015 16:53:42 -0700 | |
changeset 30721 | 1024d425d97e |
parent 30719 | 91834c070ba5 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
30719
91834c070ba5
8074417: Group 13a: golden files for tests in tools/javac/generics dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4984158 |
4 |
* @summary two inherited methods with same signature |
|
508
118e500e2e50
5009937: hiding versus generics versus binary compatibility
mcimadamore
parents:
10
diff
changeset
|
5 |
* @author gafter, Maurizio Cimadamore |
10 | 6 |
* |
30719
91834c070ba5
8074417: Group 13a: golden files for tests in tools/javac/generics dir
sogoel
parents:
5520
diff
changeset
|
7 |
* @compile/fail/ref=InheritanceConflict.out -XDrawDiagnostics InheritanceConflict.java |
10 | 8 |
*/ |
9 |
||
10 |
package inheritance.conflict; |
|
11 |
||
12 |
class A<T> { |
|
13 |
void f(String s) {} |
|
508
118e500e2e50
5009937: hiding versus generics versus binary compatibility
mcimadamore
parents:
10
diff
changeset
|
14 |
} |
118e500e2e50
5009937: hiding versus generics versus binary compatibility
mcimadamore
parents:
10
diff
changeset
|
15 |
|
118e500e2e50
5009937: hiding versus generics versus binary compatibility
mcimadamore
parents:
10
diff
changeset
|
16 |
class B<T> extends A<T> { |
10 | 17 |
void f(T t) {} |
18 |
} |
|
19 |
||
508
118e500e2e50
5009937: hiding versus generics versus binary compatibility
mcimadamore
parents:
10
diff
changeset
|
20 |
class C extends B<String> { |
10 | 21 |
} |