decompiler: fixed line mapping for try-catch and nested classes

This commit is contained in:
Egor.Ushakov
2014-10-20 18:06:14 +04:00
parent 47fad13908
commit 0bcd7fba5c
8 changed files with 92 additions and 19 deletions

View File

@@ -18,6 +18,8 @@ public class TestClassSimpleBytecodeMapping {
}
});
test2("1");
if(Math.random() > 0) {
System.out.println("0");
return 0;
@@ -27,7 +29,27 @@ public class TestClassSimpleBytecodeMapping {
}
}
public void test2(String a) {
try {
Integer.parseInt(a);
} catch (Exception e) {
System.out.println(e);
}
}
public class InnerClass {
public void print() {
System.out.println("Inner");
}
}
void run(Runnable r) {
r.run();
}
public class InnerClass2 {
public void print() {
System.out.println("Inner2");
}
}
}