blob: 4c84ea66404f878b1bf6bfb1ffa6ae9429c1ff63 [file] [log] [blame]
/*
* @test /nodynamiccopyright/
* @bug 4906586
* @summary Missing ambiguity error when two methods are equally specific
* @author gafter
*
* @compile/fail/ref=Ambig3.out -XDrawDiagnostics Ambig3.java
*/
class Test<T,E> {
public void check(T val){
System.out.println("Second check method being called");
}
public E check(E val){
System.out.println("First check method being called");
return null;
}
}
class Test3 extends Test<String,String> { }
class ParametericMethodsTest3 {
public void assertion2() {
Test3 tRef = new Test3();
tRef.check("");
}
}