aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--weaver/src/org/aspectj/weaver/patterns/IfPointcut.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/IfPointcut.java b/weaver/src/org/aspectj/weaver/patterns/IfPointcut.java
index 8ef64b0a0..868504ae0 100644
--- a/weaver/src/org/aspectj/weaver/patterns/IfPointcut.java
+++ b/weaver/src/org/aspectj/weaver/patterns/IfPointcut.java
@@ -19,6 +19,7 @@ import java.util.List;
import org.aspectj.weaver.*;
import org.aspectj.weaver.ast.*;
+import org.aspectj.bridge.*;
import org.aspectj.bridge.MessageUtil;
import org.aspectj.util.*;
@@ -131,9 +132,9 @@ public class IfPointcut extends Pointcut {
} else {
ResolvedPointcutDefinition def = bindings.peekEnclosingDefinitition();
if (def == CflowPointcut.CFLOW_MARKER) {
- inAspect.getWorld().getMessageHandler().handleMessage(
- MessageUtil.error("if not supported lexically within cflow (compiler limitation)",
- null));
+ inAspect.getWorld().showMessage(IMessage.ERROR,
+ "if not supported lexically within cflow (compiler limitation)",
+ getSourceLocation(), null);
return Pointcut.makeMatchesNothing(Pointcut.CONCRETE);
}
ret.baseArgsCount = def.getParameterTypes().length;