From 3a71bd529e4ee293345bdd69b65459350cf0a88c Mon Sep 17 00:00:00 2001 From: jochen Date: Sat, 26 Jun 1999 16:06:43 +0000 Subject: [PATCH] catch RuntimeExceptions in toString() git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@888 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/expr/Expression.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jode/jode/expr/Expression.java b/jode/jode/expr/Expression.java index 4feaaaf..8506294 100644 --- a/jode/jode/expr/Expression.java +++ b/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() {