2014-11-04 05:30:23 -05:00
|
|
|
package pkg;
|
|
|
|
|
|
|
|
class TestAmbiguousCall {
|
|
|
|
void m1(RuntimeException e, String s) {
|
|
|
|
}
|
|
|
|
|
|
|
|
void m1(IllegalArgumentException e, String s) {
|
|
|
|
}
|
|
|
|
|
|
|
|
void test() {
|
2014-12-25 13:36:19 -05:00
|
|
|
IllegalArgumentException iae = new IllegalArgumentException();// 8
|
|
|
|
this.m1((RuntimeException)iae, "RE");// 9
|
|
|
|
this.m1(iae, "IAE");// 10
|
|
|
|
IllegalArgumentException re = new IllegalArgumentException();// 12
|
|
|
|
this.m1((RuntimeException)re, "RE");// 13
|
|
|
|
this.m1((IllegalArgumentException)re, "IAE");// 14
|
2014-11-04 05:30:23 -05:00
|
|
|
}
|
|
|
|
}
|
2014-12-25 13:36:19 -05:00
|
|
|
|
|
|
|
class 'pkg/TestAmbiguousCall' {
|
|
|
|
method 'test ()V' {
|
|
|
|
7 10
|
|
|
|
a 11
|
|
|
|
c 11
|
|
|
|
11 12
|
|
|
|
13 12
|
|
|
|
1d 13
|
|
|
|
20 14
|
|
|
|
22 14
|
|
|
|
27 15
|
|
|
|
2a 15
|
|
|
|
2c 15
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Lines mapping:
|
|
|
|
8 <-> 11
|
|
|
|
9 <-> 12
|
|
|
|
10 <-> 13
|
|
|
|
12 <-> 14
|
|
|
|
13 <-> 15
|
|
|
|
14 <-> 16
|