2014-10-15 02:35:45 -04:00
|
|
|
package pkg;
|
|
|
|
|
|
|
|
public class TestClassSimpleBytecodeMapping {
|
|
|
|
public int test() {
|
2014-12-24 12:42:07 -05:00
|
|
|
System.out.println("before");// 12
|
|
|
|
this.run(new Runnable() {// 14
|
2014-10-17 07:41:17 -04:00
|
|
|
public void run() {
|
2014-12-24 12:42:07 -05:00
|
|
|
System.out.println("Runnable");// 17
|
2014-10-17 07:41:17 -04:00
|
|
|
}
|
|
|
|
});
|
2014-12-24 12:42:07 -05:00
|
|
|
this.test2("1");// 21
|
|
|
|
if(Math.random() > 0.0D) {// 23
|
|
|
|
System.out.println("0");// 24
|
|
|
|
return 0;// 25
|
2014-10-15 02:35:45 -04:00
|
|
|
} else {
|
2014-12-24 12:42:07 -05:00
|
|
|
System.out.println("1");// 27
|
|
|
|
return 1;// 28
|
2014-10-15 02:35:45 -04:00
|
|
|
}
|
|
|
|
}
|
2014-10-17 07:41:17 -04:00
|
|
|
|
2014-10-20 10:06:14 -04:00
|
|
|
public void test2(String var1) {
|
|
|
|
try {
|
2014-12-24 12:42:07 -05:00
|
|
|
Integer.parseInt(var1);// 34
|
2014-10-21 11:10:42 -04:00
|
|
|
} catch (Exception var6) {
|
|
|
|
System.out.println(var6);
|
|
|
|
} finally {
|
|
|
|
System.out.println("Finally");
|
2014-10-20 10:06:14 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2014-10-17 07:41:17 -04:00
|
|
|
void run(Runnable var1) {
|
2014-12-24 12:42:07 -05:00
|
|
|
var1.run();// 49
|
2014-10-17 07:41:17 -04:00
|
|
|
}
|
2014-10-20 10:06:14 -04:00
|
|
|
|
|
|
|
public class InnerClass2 {
|
|
|
|
public void print() {
|
2014-12-24 12:42:07 -05:00
|
|
|
System.out.println("Inner2");// 54
|
2014-10-20 10:06:14 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class InnerClass {
|
|
|
|
public void print() {
|
2014-12-24 12:42:07 -05:00
|
|
|
System.out.println("Inner");// 44
|
2014-10-20 10:06:14 -04:00
|
|
|
}
|
|
|
|
}
|
2014-10-15 02:35:45 -04:00
|
|
|
}
|
|
|
|
|
2014-10-17 12:19:39 -04:00
|
|
|
class 'pkg/TestClassSimpleBytecodeMapping$1' {
|
|
|
|
method 'run ()V' {
|
2014-10-17 09:02:13 -04:00
|
|
|
0 7
|
|
|
|
3 7
|
|
|
|
5 7
|
2014-10-17 07:41:17 -04:00
|
|
|
}
|
2014-10-17 09:02:13 -04:00
|
|
|
}
|
2014-10-17 12:19:39 -04:00
|
|
|
|
|
|
|
class 'pkg/TestClassSimpleBytecodeMapping' {
|
|
|
|
method 'test ()I' {
|
2014-10-15 02:35:45 -04:00
|
|
|
0 4
|
|
|
|
3 4
|
|
|
|
5 4
|
2014-10-17 07:41:17 -04:00
|
|
|
11 5
|
2014-10-20 10:06:14 -04:00
|
|
|
15 10
|
2014-10-17 07:41:17 -04:00
|
|
|
17 10
|
2014-10-20 10:06:14 -04:00
|
|
|
1a 11
|
|
|
|
1d 11
|
|
|
|
1e 11
|
2014-10-17 07:41:17 -04:00
|
|
|
1f 11
|
2014-10-20 10:06:14 -04:00
|
|
|
22 12
|
2014-10-17 07:41:17 -04:00
|
|
|
25 12
|
2014-10-20 10:06:14 -04:00
|
|
|
27 12
|
|
|
|
2a 13
|
|
|
|
2b 13
|
|
|
|
2c 15
|
2014-10-17 07:41:17 -04:00
|
|
|
2f 15
|
2014-10-20 10:06:14 -04:00
|
|
|
31 15
|
|
|
|
34 16
|
|
|
|
35 16
|
|
|
|
}
|
|
|
|
|
|
|
|
method 'test2 (Ljava/lang/String;)V' {
|
|
|
|
1 22
|
2014-10-17 07:41:17 -04:00
|
|
|
}
|
2014-10-17 09:02:13 -04:00
|
|
|
|
2014-10-17 12:19:39 -04:00
|
|
|
method 'run (Ljava/lang/Runnable;)V' {
|
2014-10-21 11:10:42 -04:00
|
|
|
1 32
|
2014-10-20 10:06:14 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class 'pkg/TestClassSimpleBytecodeMapping$InnerClass2' {
|
|
|
|
method 'print ()V' {
|
2014-10-21 11:10:42 -04:00
|
|
|
0 37
|
|
|
|
3 37
|
|
|
|
5 37
|
2014-10-20 10:06:14 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class 'pkg/TestClassSimpleBytecodeMapping$InnerClass' {
|
|
|
|
method 'print ()V' {
|
2014-10-21 11:10:42 -04:00
|
|
|
0 43
|
|
|
|
3 43
|
|
|
|
5 43
|
2014-10-15 02:35:45 -04:00
|
|
|
}
|
|
|
|
}
|
2014-10-17 12:19:39 -04:00
|
|
|
|
2014-10-17 10:52:47 -04:00
|
|
|
Lines mapping:
|
2014-10-20 08:03:59 -04:00
|
|
|
12 <-> 5
|
|
|
|
14 <-> 6
|
|
|
|
17 <-> 8
|
|
|
|
21 <-> 11
|
2014-10-20 10:06:14 -04:00
|
|
|
23 <-> 12
|
|
|
|
24 <-> 13
|
|
|
|
25 <-> 14
|
|
|
|
27 <-> 16
|
|
|
|
28 <-> 17
|
|
|
|
34 <-> 23
|
2014-10-21 11:10:42 -04:00
|
|
|
44 <-> 44
|
|
|
|
49 <-> 33
|
|
|
|
54 <-> 38
|