catch runtime exception in dump

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@939 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 39ec800e12
commit d0c889ccfe
  1. 5
      jode/jode/flow/InstructionBlock.java

@ -144,7 +144,12 @@ public class InstructionBlock extends InstructionContainer {
} else { } else {
if (instr.getType() != Type.tVoid) if (instr.getType() != Type.tVoid)
writer.print("PUSH "); writer.print("PUSH ");
try {
instr.dumpExpression(writer); instr.dumpExpression(writer);
} catch (RuntimeException ex) {
writer.print("(RUNTIME ERROR IN EXPRESSION)");
}
} }
writer.println(";"); writer.println(";");
} }

Loading…
Cancel
Save