summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2011-04-05 15:15:52 +0000
committeraclement <aclement>2011-04-05 15:15:52 +0000
commit978d4a69385d283b761c472b3fa3ec3b7c54d61a (patch)
tree9e039969b39659991e9c61a122412a4333a269ad
parent46e149916b753af75934d0781f887664b807a8e4 (diff)
downloadaspectj-978d4a69385d283b761c472b3fa3ec3b7c54d61a.tar.gz
aspectj-978d4a69385d283b761c472b3fa3ec3b7c54d61a.zip
Changed from Exception to Throwable, to catch 'Error'
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java3
1 files changed, 2 insertions, 1 deletions
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();
}