catch RuntimeExceptions in toString()

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

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

Loading…
Cancel
Save