catch RuntimeExceptions in toString()

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@888 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 25 years ago
parent 4422b47b32
commit 3a71bd529e
  1. 6
      jode/jode/expr/Expression.java

@ -282,8 +282,10 @@ public abstract class Expression {
dumpExpression(writer);
return strw.toString();
} catch (java.io.IOException ex) {
return super.toString();
}
return "/*IOException*/"+super.toString();
} catch (RuntimeException ex) {
return "/*RuntimeException*/"+super.toString();
}
}
public boolean isVoid() {

Loading…
Cancel
Save