Mon, 17 Nov 2014 12:40:43 -0800
Added tag jdk8u31-b09 for changeset 26c46688ce4a
aoqi@0 | 1 | /* |
aoqi@0 | 2 | * @test /nodynamiccopyright/ |
aoqi@0 | 3 | * @bug 7007615 |
aoqi@0 | 4 | * @summary java_util/generics/phase2/NameClashTest02 fails since jdk7/pit/b123. |
aoqi@0 | 5 | * @author mcimadamore |
aoqi@0 | 6 | * @compile/fail/ref=T7007615.out -XDrawDiagnostics T7007615.java |
aoqi@0 | 7 | */ |
aoqi@0 | 8 | |
aoqi@0 | 9 | class T6985719a { |
aoqi@0 | 10 | class AX<T extends Number> { |
aoqi@0 | 11 | void foo(T t) { } |
aoqi@0 | 12 | } |
aoqi@0 | 13 | |
aoqi@0 | 14 | class BX<S extends Integer> extends AX<S> { |
aoqi@0 | 15 | @Override |
aoqi@0 | 16 | void foo(S t) { } |
aoqi@0 | 17 | void bar(BX bx){} |
aoqi@0 | 18 | } |
aoqi@0 | 19 | |
aoqi@0 | 20 | class DX extends BX<Integer> { |
aoqi@0 | 21 | void foo(Number t) { } |
aoqi@0 | 22 | void bar(BX<?> bx) { } |
aoqi@0 | 23 | |
aoqi@0 | 24 | @Override |
aoqi@0 | 25 | void foo(Integer t) { } |
aoqi@0 | 26 | } |
aoqi@0 | 27 | } |