From 978d4a69385d283b761c472b3fa3ec3b7c54d61a Mon Sep 17 00:00:00 2001 From: aclement Date: Tue, 5 Apr 2011 15:15:52 +0000 Subject: [PATCH] Changed from Exception to Throwable, to catch 'Error' --- weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- 2.39.5