[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] AJDT not highlighting pointcuts when working with generic arrays or var-args
|
- From: Andrew Eisenberg <andrew@xxxxxxxxxxxx>
- Date: Thu, 16 Jul 2009 11:47:06 -0700
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type:content-transfer-encoding; bh=2JhroqTVaN4Li9MIx8bly/YerHtq6ffH+Hjoys8D4HY=; b=pWYmL+lXIbcKyvsWjcITMRDo09ZT6RzEKS6YE3vM0dDt1f673wYGvVF5dn9j53dQif MpLP0y7W00f2OZeQivg9OAL6QxkM/JregTB3Wj6T82D9r1FdzYRFexRBxunPcajOx0Zx eStol5ICq9rScZOHK88s1gY9dEg55qOMO25Hk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=UEN623pedCEsQmaS+i14RpjEfGQlFohPm0IgYiCAN7UQ/4VqQSduH0GZE3O5AquliU kCR2gol1X+asGKrN3oHXp0pdqZHgdE2As5XIemX/evWD/sjoPC+Yar83vEG1qkRQJeYr BtdSH7RWREmIAs3JzkKyo09WVr5LDomrJ2VwA=
I haven't tried this out, but it is likely a problem with the way that
we generate the crosscutting model and the handles used to identify
elements in that model.
I raised a bug for this on bugzilla:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=283747
On Thu, Jul 16, 2009 at 11:36 AM, Jacob Bower<jacob@xxxxxxxxxxx> wrote:
> Hi,
>
> For some reason when I'm editing Java in Eclipse using AJDT some pointcuts
> involving both generics and arrays or var-args are not being highlighted
> (either with a little arrow or in the cross-reference view). The advice
> seems to be woven in correctly however.
>
> The following example illustrates my problem:
>
> public aspect Failing {
> pointcut failingPointcut() : execution(* foo*(..));
>
> after() returning() : failingPointcut()
> {
> System.out.println("hit");
> }
> }
>
> class X <T extends Object> {
> // Pointcut match highlighted
> void foo() {}
>
> // Pointcut match highlighted
> void foo1(T x) {}
>
> // Pointcut not highlighted
> void foo2(T[] x) {}
>
> // Pointcut not highlighted
> void foo3(T... x) {}
>
> // Pointcut highlighted
> T foo3() { return null; }
>
> // Pointcut highlighted
> T[] foo4() { return null; }
>
> public static void main(String[] args) {
> X<Object> x = new X<Object>();
>
> x.foo2(null);
> }
> }
>
> Running this class produces the output:
> hit
>
> Am I missing something, or is this a bug?
>
> Eclispe reports my AspectJ envrionment as:
>
> Eclipse AspectJ Development Tools
>
> Version: 2.0.0.e35x-20090624-1600
> AspectJ version: 1.6.5.20090618034232
>
>
> This caught me out for quite a while trying to figure out why my pointcut
> wasn't being matched...
>
> - Jacob
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>