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.
54 lines
1.0 KiB
54 lines
1.0 KiB
package pkg;
|
|
|
|
class TestAmbiguousCall {
|
|
void m1(RuntimeException e, String s) {
|
|
}// 4
|
|
|
|
void m1(IllegalArgumentException e, String s) {
|
|
}// 5
|
|
|
|
void test() {
|
|
IllegalArgumentException iae = new IllegalArgumentException();// 8
|
|
this.m1((RuntimeException)iae, "RE");// 9
|
|
this.m1(iae, "IAE");// 10
|
|
RuntimeException re = new IllegalArgumentException();// 12
|
|
this.m1((RuntimeException)re, "RE");// 13
|
|
this.m1((IllegalArgumentException)re, "IAE");// 14
|
|
}// 15
|
|
}
|
|
|
|
class 'pkg/TestAmbiguousCall' {
|
|
method 'm1 (Ljava/lang/RuntimeException;Ljava/lang/String;)V' {
|
|
0 4
|
|
}
|
|
|
|
method 'm1 (Ljava/lang/IllegalArgumentException;Ljava/lang/String;)V' {
|
|
0 7
|
|
}
|
|
|
|
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
|
|
2f 16
|
|
}
|
|
}
|
|
|
|
Lines mapping:
|
|
4 <-> 5
|
|
5 <-> 8
|
|
8 <-> 11
|
|
9 <-> 12
|
|
10 <-> 13
|
|
12 <-> 14
|
|
13 <-> 15
|
|
14 <-> 16
|
|
15 <-> 17
|
|
|