You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
494 B
19 lines
494 B
10 years ago
|
package pkg;
|
||
|
|
||
|
class TestAmbiguousCall {
|
||
|
void m1(RuntimeException var1, String var2) {
|
||
|
}
|
||
|
|
||
|
void m1(IllegalArgumentException var1, String var2) {
|
||
|
}
|
||
|
|
||
|
void test() {
|
||
|
IllegalArgumentException var1 = new IllegalArgumentException();
|
||
|
this.m1((RuntimeException)var1, "RE");
|
||
|
this.m1(var1, "IAE");
|
||
|
IllegalArgumentException var2 = new IllegalArgumentException();
|
||
|
this.m1((RuntimeException)var2, "RE");
|
||
|
this.m1((IllegalArgumentException)var2, "IAE");
|
||
|
}
|
||
|
}
|