decompiler: fixed bytecode mapping for anonymous classes

This commit is contained in:
Egor.Ushakov
2014-10-17 15:41:17 +04:00
parent b3681fe952
commit 32e7765874
9 changed files with 95 additions and 52 deletions

View File

@@ -1,5 +1,8 @@
package pkg;
import java.lang.Override;
import java.lang.Runnable;
public class TestClassSimpleBytecodeMapping {
public TestClassSimpleBytecodeMapping() {}
@@ -7,7 +10,14 @@ public class TestClassSimpleBytecodeMapping {
public int test() {
System.out.println("before");
run(new Runnable() {
@Override
public void run() {
System.out.println("Runnable");
}
});
if(Math.random() > 0) {
System.out.println("0");
return 0;
@@ -17,4 +27,7 @@ public class TestClassSimpleBytecodeMapping {
}
}
void run(Runnable r) {
r.run();
}
}