]> source.dussan.org Git - aspectj.git/commitdiff
194429: test and fix: include context in error
authoraclement <aclement>
Thu, 21 Aug 2008 18:13:05 +0000 (18:13 +0000)
committeraclement <aclement>
Thu, 21 Aug 2008 18:13:05 +0000 (18:13 +0000)
weaver/src/org/aspectj/weaver/patterns/ReferencePointcut.java

index 7b49ae36d24319800174902755e262fa50756dac..e77a9f61d9c1c943c77a7590f89bec51fe2451c4 100644 (file)
@@ -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;
                        }