diff options
author | mkersten <mkersten> | 2003-08-07 10:51:36 +0000 |
---|---|---|
committer | mkersten <mkersten> | 2003-08-07 10:51:36 +0000 |
commit | 684c9c1c3dd084b43645f537774bea0b4a9c1222 (patch) | |
tree | 403302230f48deabdbd9eb538c219ff6120f2dcf /weaver | |
parent | 672bf9d46e415a259612aea3dee579b81fa28817 (diff) | |
download | aspectj-684c9c1c3dd084b43645f537774bea0b4a9c1222.tar.gz aspectj-684c9c1c3dd084b43645f537774bea0b4a9c1222.zip |
40534: Declare warning/error output - more detail required.
- Added getDetails() to messages. This String corresponding to thisJoinPointStatic part can be used by tools that need to display additional info.
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/Checker.java | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/weaver/src/org/aspectj/weaver/Checker.java b/weaver/src/org/aspectj/weaver/Checker.java index 69285c37f..4e4517077 100644 --- a/weaver/src/org/aspectj/weaver/Checker.java +++ b/weaver/src/org/aspectj/weaver/Checker.java @@ -13,13 +13,13 @@ package org.aspectj.weaver; -import java.util.Collection; -import java.util.Collections; +import java.util.*; -import org.aspectj.bridge.IMessage; -import org.aspectj.bridge.Message; -import org.aspectj.weaver.patterns.DeclareErrorOrWarning; -import org.aspectj.weaver.patterns.PerClause; +import org.aspectj.bridge.*; +import org.aspectj.lang.Signature; +import org.aspectj.lang.JoinPoint.StaticPart; +import org.aspectj.lang.reflect.SourceLocation; +import org.aspectj.weaver.patterns.*; public class Checker extends ShadowMunger { @@ -48,11 +48,13 @@ public class Checker extends ShadowMunger { public boolean match(Shadow shadow, World world) { if (super.match(shadow, world)) { - world.getMessageHandler().handleMessage( - new Message(msg, - isError ? IMessage.ERROR : IMessage.WARNING, - null, - shadow.getSourceLocation())); + IMessage message = new Message( + msg, + shadow.toString(), + isError ? IMessage.ERROR : IMessage.WARNING, + shadow.getSourceLocation()); + world.getMessageHandler().handleMessage(message); + } return false; } |