From: aclement Date: Tue, 5 Apr 2011 15:15:52 +0000 (+0000) Subject: Changed from Exception to Throwable, to catch 'Error' X-Git-Tag: V1_6_12M1~76 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=978d4a69385d283b761c472b3fa3ec3b7c54d61a;p=aspectj.git Changed from Exception to Throwable, to catch 'Error' --- diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java b/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java index 2ffd7939d..2c70667d8 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java @@ -1704,7 +1704,8 @@ public class BcelWeaver { String classDebugInfo = null; try { classDebugInfo = clazz.toLongString(); - } catch (Exception e) { + } catch (Throwable e) { + new RuntimeException("Crashed whilst crashing with this exception: " + e, e).printStackTrace(); // recover from crash whilst producing debug string classDebugInfo = clazz.getClassName(); }