*** empty log message ***

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@537 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 5858df67cd
commit 2b71a4d303
  1. 19
      jode/jode/flow/FlowBlock.java

@ -1421,15 +1421,15 @@ public class FlowBlock {
* didn't worked. * didn't worked.
*/ */
public final boolean mapStackToLocal() { public final boolean mapStackToLocal() {
try { // try {
mapStackToLocal(VariableStack.EMPTY); mapStackToLocal(VariableStack.EMPTY);
return true; return true;
} catch (RuntimeException ex) { // } catch (RuntimeException ex) {
Decompiler.err.println("Can't resolve all PUSHes, " // Decompiler.err.println("Can't resolve all PUSHes, "
+"this is probably illegal bytecode:"); // +"this is probably illegal bytecode:");
ex.printStackTrace(Decompiler.err); // ex.printStackTrace(Decompiler.err);
return false; // return false;
} // }
} }
/** /**
@ -1450,6 +1450,8 @@ public class FlowBlock {
Jump jumps = (Jump) enum.nextElement(); Jump jumps = (Jump) enum.nextElement();
VariableStack stack; VariableStack stack;
FlowBlock succ = jumps.destination; FlowBlock succ = jumps.destination;
if (succ == END_OF_METHOD)
continue;
stack = succ.stackMap; stack = succ.stackMap;
for (/**/; jumps != null; jumps = jumps.next) { for (/**/; jumps != null; jumps = jumps.next) {
if (jumps.stackMap == null) if (jumps.stackMap == null)
@ -1552,6 +1554,9 @@ public class FlowBlock {
java.io.StringWriter strw = new java.io.StringWriter(); java.io.StringWriter strw = new java.io.StringWriter();
TabbedPrintWriter writer = new TabbedPrintWriter(strw); TabbedPrintWriter writer = new TabbedPrintWriter(strw);
writer.println(super.toString() + ": "+addr+"-"+(addr+length)); writer.println(super.toString() + ": "+addr+"-"+(addr+length));
if (Decompiler.debugInOut) {
writer.println("in: "+in);
}
writer.tab(); writer.tab();
block.dumpSource(writer); block.dumpSource(writer);
return strw.toString(); return strw.toString();

Loading…
Cancel
Save