2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2015-01-27 23:11:57 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4929736
|
|
|
|
* @summary Missing ambiguity error when two methods are equally specific
|
|
|
|
* @author gafter
|
|
|
|
*
|
2015-01-27 23:11:57 +00:00
|
|
|
* @compile/fail/ref=Ambig1.out -XDrawDiagnostics Ambig1.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package ambig1;
|
|
|
|
|
|
|
|
import static ambig1.A.f;
|
|
|
|
import static ambig1.B.f;
|
|
|
|
|
|
|
|
class A {
|
|
|
|
static void f(int i) {}
|
|
|
|
}
|
|
|
|
class B {
|
|
|
|
static void f(int i) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
class Main {
|
|
|
|
void g() {
|
|
|
|
f(2);
|
|
|
|
}
|
|
|
|
}
|