jdk
1/*
2* @test /nodynamiccopyright/
3* @bug 4906586
4* @summary Missing ambiguity error when two methods are equally specific
5* @author gafter
6*
7* @compile/fail/ref=Ambig3.out -XDrawDiagnostics Ambig3.java
8*/
9
10class Test<T,E> {
11public void check(T val){
12System.out.println("Second check method being called");
13}
14public E check(E val){
15System.out.println("First check method being called");
16return null;
17}
18}
19
20class Test3 extends Test<String,String> { }
21
22class ParametericMethodsTest3 {
23public void assertion2() {
24Test3 tRef = new Test3();
25tRef.check("");
26}
27}
28