decompiler: map line number for catch statement

This commit is contained in:
Egor.Ushakov
2015-03-26 16:03:22 +03:00
parent ca7e2dfa1c
commit d5e22fe0c9
3 changed files with 20 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ public class TestClassSimpleBytecodeMapping {
public void test2(String var1) {
try {
Integer.parseInt(var1);// 34
} catch (Exception var6) {
} catch (Exception var6) {// 35
System.out.println(var6);// 36
} finally {
System.out.println("Finally");// 38
@@ -81,6 +81,7 @@ class 'pkg/TestClassSimpleBytecodeMapping' {
method 'test2 (Ljava/lang/String;)V' {
1 22
10 23
11 24
15 24
23 26
@@ -125,6 +126,7 @@ Lines mapping:
27 <-> 16
28 <-> 17
34 <-> 23
35 <-> 24
36 <-> 25
38 <-> 27
40 <-> 30
@@ -135,5 +137,4 @@ Lines mapping:
54 <-> 38
55 <-> 39
Not mapped:
35
39

View File

@@ -7,7 +7,7 @@ public class TestTryCatchFinally {
} catch (Exception var9) {
try {
System.out.println("sout2");// 27
} catch (Exception var8) {
} catch (Exception var8) {// 28
;
}
} finally {
@@ -30,7 +30,7 @@ public class TestTryCatchFinally {
try {
int var2 = Integer.parseInt(var1);// 51
return var2;
} catch (Exception var6) {
} catch (Exception var6) {// 52
System.out.println("Error" + var6);// 53
} finally {
System.out.println("Finally");// 55
@@ -48,6 +48,7 @@ class 'pkg/TestTryCatchFinally' {
14 8
17 8
19 8
1f 9
2b 13
2d 13
30 13
@@ -68,6 +69,7 @@ class 'pkg/TestTryCatchFinally' {
1 30
4 30
e 31
f 32
10 33
1a 33
23 33
@@ -83,6 +85,7 @@ class 'pkg/TestTryCatchFinally' {
Lines mapping:
24 <-> 6
27 <-> 9
28 <-> 10
34 <-> 14
36 <-> 17
39 <-> 20
@@ -91,13 +94,12 @@ Lines mapping:
42 <-> 23
45 <-> 25
51 <-> 31
52 <-> 33
53 <-> 34
55 <-> 36
56 <-> 39
57 <-> 39
Not mapped:
25
28
32
35
52