decompiler: fixed line mapping in try-catch block

This commit is contained in:
Egor.Ushakov
2014-10-21 19:10:42 +04:00
parent d00bc545fe
commit 0d80e663ae
9 changed files with 55 additions and 24 deletions

View File

@@ -34,6 +34,8 @@ public class TestClassSimpleBytecodeMapping {
Integer.parseInt(a);
} catch (Exception e) {
System.out.println(e);
} finally {
System.out.println("Finally");
}
}

View File

@@ -16,6 +16,22 @@
package pkg;
public class TestTryCatchFinally {
public void test1(String x) {
try {
System.out.println("sout1");
} catch (Exception e) {
try {
System.out.println("sout2");
} catch (Exception e2) {
// Empty
// Empty
// Empty
}
} finally {
System.out.println("finally");
}
}
public int test(String a) {
try {
return Integer.parseInt(a);