diff options
author | acolyer <acolyer> | 2005-09-26 19:11:55 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-09-26 19:11:55 +0000 |
commit | 20cafd486b5f5181153fadc4179c2cf313c931a5 (patch) | |
tree | d39d479a80e60ce4ddffcede0ceeb8fa3707a0ee /weaver | |
parent | cf077b3b71ae47a556e230eb40dfa158abd4d037 (diff) | |
download | aspectj-20cafd486b5f5181153fadc4179c2cf313c931a5.tar.gz aspectj-20cafd486b5f5181153fadc4179c2cf313c931a5.zip |
a few more tweaks to fix for pr108123 and pr106500 - better diagnostics and exceptions, plus support for -Xdev:Pinpoint
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java b/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java index 1aefee5b9..275094c88 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelWeaver.java @@ -1455,14 +1455,15 @@ public class BcelWeaver implements IWeaver { return clazz; } } catch (RuntimeException re) { - System.err.println("trouble in: "); - clazz.print(System.err); - re.printStackTrace(); - throw re; + String messageText = "trouble in: \n" + clazz.toLongString(); + getWorld().getMessageHandler().handleMessage( + new Message(messageText,IMessage.ABORT,re,null) + ); } catch (Error re) { - System.err.println("trouble in: "); - clazz.print(System.err); - throw re; + String messageText = "trouble in: \n" + clazz.toLongString(); + getWorld().getMessageHandler().handleMessage( + new Message(messageText,IMessage.ABORT,re,null) + ); } } |