Fri, 14 Mar 2014 23:03:03 -0700
Merge
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 7007615
4 * @summary java_util/generics/phase2/NameClashTest02 fails since jdk7/pit/b123.
5 * @author mcimadamore
6 * @compile/fail/ref=T7007615.out -XDrawDiagnostics T7007615.java
7 */
9 class T6985719a {
10 class AX<T extends Number> {
11 void foo(T t) { }
12 }
14 class BX<S extends Integer> extends AX<S> {
15 @Override
16 void foo(S t) { }
17 void bar(BX bx){}
18 }
20 class DX extends BX<Integer> {
21 void foo(Number t) { }
22 void bar(BX<?> bx) { }
24 @Override
25 void foo(Integer t) { }
26 }
27 }