From ad755cd11615475c7afe93cd1bf51e80512405e7 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Wed, 1 Jan 2003 01:32:20 +0000 Subject: [PATCH] better error for unsupported 'if' lexically inside cflow --- weaver/src/org/aspectj/weaver/patterns/IfPointcut.java | 7 ++++--- 1 file 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; -- 2.39.5