]> source.dussan.org Git - aspectj.git/commitdiff
Changed from Exception to Throwable, to catch 'Error'
authoraclement <aclement>
Tue, 5 Apr 2011 15:15:52 +0000 (15:15 +0000)
committeraclement <aclement>
Tue, 5 Apr 2011 15:15:52 +0000 (15:15 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java

index 2ffd7939ddd5756c970da84f625d20ef19abc648..2c70667d8a377944a04a4552c5a6f894910d7702 100644 (file)
@@ -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();
                                        }