From: aclement Date: Thu, 21 Aug 2008 18:13:05 +0000 (+0000) Subject: 194429: test and fix: include context in error X-Git-Tag: V162DEV_M1~95 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=718dcf817024f690582f7328fa4ec48b515f3b25;p=aspectj.git 194429: test and fix: include context in error --- diff --git a/weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java b/weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java index 7b49ae36d..e77a9f61d 100644 --- a/weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java +++ b/weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java @@ -238,7 +238,7 @@ public class ReferencePointcut extends Pointcut { !p.getExactType().equals(UnresolvedType.OBJECT); } if (reportProblem) { - scope.message(IMessage.ERROR, p, "incompatible type, expected " + + scope.message(IMessage.ERROR, this, "incompatible type, expected " + parameterTypes[i].getName() + " found " + p +". Check the type specified in your pointcut"); return; }