Files
openide/plugins/java-decompiler/engine/testData/results/TestClassSimpleBytecodeMapping.dec
Mikhail Pyltsin 8cb765251d [java-decompiler] IDEA-346312 adapt patch 043
- fix tests

GitOrigin-RevId: 5d2699a8f6f87036a66a1fad98a46d0a17bb9427
2024-10-10 09:55:49 +00:00

193 lines
3.2 KiB
Plaintext

package pkg;
public class TestClassSimpleBytecodeMapping {
public int test() {
System.out.println("before");// 12
this.run(new Runnable() {// 14
public void run() {
System.out.println("Runnable");// 17
}// 18
});
this.test2("1");// 21
if (Math.random() > 0.0) {// 23
System.out.println("0");// 24
return 0;// 25
} else {
System.out.println("1");// 27
return 1;// 28
}
}
public void test2(String var1) {
try {
Integer.parseInt(var1);// 34
} catch (Exception var6) {// 35
System.out.println(var6);// 36
} finally {
System.out.println("Finally");// 38
}
}// 40
void run(Runnable var1) {
var1.run();// 49
}// 50
public class InnerClass {
public void print() {
System.out.println("Inner");// 44
}// 45
}
public class InnerClass2 {
public void print() {
System.out.println("Inner2");// 54
}// 55
}
}
class 'pkg/TestClassSimpleBytecodeMapping$1' {
method 'run ()V' {
0 7
1 7
2 7
3 7
4 7
5 7
6 7
7 7
8 8
}
}
class 'pkg/TestClassSimpleBytecodeMapping' {
method 'test ()I' {
0 4
1 4
2 4
3 4
4 4
5 4
6 4
7 4
8 5
11 5
12 5
13 5
14 10
15 10
16 10
17 10
18 10
19 10
1a 11
1b 11
1c 11
1d 11
1e 11
1f 11
22 12
23 12
24 12
25 12
26 12
27 12
28 12
29 12
2a 13
2b 13
2c 15
2d 15
2e 15
2f 15
30 15
31 15
32 15
33 15
34 16
35 16
}
method 'test2 (Ljava/lang/String;)V' {
0 22
1 22
2 22
3 22
10 23
11 24
12 24
13 24
15 24
24 26
25 26
26 26
27 26
28 26
29 26
2e 29
}
method 'run (Ljava/lang/Runnable;)V' {
0 32
1 32
2 32
3 32
4 32
5 32
6 33
}
}
class 'pkg/TestClassSimpleBytecodeMapping$InnerClass' {
method 'print ()V' {
0 37
1 37
2 37
3 37
4 37
5 37
6 37
7 37
8 38
}
}
class 'pkg/TestClassSimpleBytecodeMapping$InnerClass2' {
method 'print ()V' {
0 43
1 43
2 43
3 43
4 43
5 43
6 43
7 43
8 44
}
}
Lines mapping:
12 <-> 5
14 <-> 6
17 <-> 8
18 <-> 9
21 <-> 11
23 <-> 12
24 <-> 13
25 <-> 14
27 <-> 16
28 <-> 17
34 <-> 23
35 <-> 24
36 <-> 25
38 <-> 27
40 <-> 30
44 <-> 38
45 <-> 39
49 <-> 33
50 <-> 34
54 <-> 44
55 <-> 45
Not mapped:
39