diff options
author | avasseur <avasseur> | 2005-07-21 08:13:24 +0000 |
---|---|---|
committer | avasseur <avasseur> | 2005-07-21 08:13:24 +0000 |
commit | 66809e17d849d8ece4f0bd56c7424c1d79257b59 (patch) | |
tree | 034ef6f85732b5903cd26529c267987cd9e46086 /loadtime | |
parent | 6a6669722b414814e142f419a29d3b2aa3ec09ba (diff) | |
download | aspectj-66809e17d849d8ece4f0bd56c7424c1d79257b59.tar.gz aspectj-66809e17d849d8ece4f0bd56c7424c1d79257b59.zip |
fix in ltw log + test + some doc on custom message handler is evil
Diffstat (limited to 'loadtime')
-rw-r--r-- | loadtime/src/org/aspectj/weaver/loadtime/DefaultMessageHandler.java | 12 | ||||
-rw-r--r-- | loadtime/src/org/aspectj/weaver/loadtime/Options.java | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/loadtime/src/org/aspectj/weaver/loadtime/DefaultMessageHandler.java b/loadtime/src/org/aspectj/weaver/loadtime/DefaultMessageHandler.java index e099dee7c..80d6e23e3 100644 --- a/loadtime/src/org/aspectj/weaver/loadtime/DefaultMessageHandler.java +++ b/loadtime/src/org/aspectj/weaver/loadtime/DefaultMessageHandler.java @@ -25,10 +25,14 @@ public class DefaultMessageHandler implements IMessageHandler { boolean showWarn = true; public boolean handleMessage(IMessage message) throws AbortException { - if (message.getKind().isSameOrLessThan(IMessage.INFO)) { - return SYSTEM_OUT.handleMessage(message); - } else { - return SYSTEM_ERR.handleMessage(message); + if (isIgnoring(message.getKind())) { + return false; + } else { + if (message.getKind().isSameOrLessThan(IMessage.INFO)) { + return SYSTEM_OUT.handleMessage(message); + } else { + return SYSTEM_ERR.handleMessage(message); + } } } diff --git a/loadtime/src/org/aspectj/weaver/loadtime/Options.java b/loadtime/src/org/aspectj/weaver/loadtime/Options.java index e6c502d10..507afe990 100644 --- a/loadtime/src/org/aspectj/weaver/loadtime/Options.java +++ b/loadtime/src/org/aspectj/weaver/loadtime/Options.java @@ -133,10 +133,6 @@ public class Options { public WeaverOption() { messageHandler = new DefaultMessageHandler();//default - - //temp alex - messageHandler.dontIgnore(IMessage.WEAVEINFO); - messageHandler.dontIgnore(IMessage.INFO); } } } |