[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[aspectj-users] Aspects and packages
|
- From: "David Mohr" <dmohr@xxxxxxxxxx>
- Date: Thu, 3 Jul 2008 17:33:43 -0600
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=rh/OSTGM9eg5qGku7TPr6k9FRg4vMy5J6JdrTYu3cuc=; b=PSXJrX8/fx8+6ZkwH9HWnczcyW/54iUAdEBb+KOcEReez5DaVMqX3GO405FjVom8SC FRu0x6UgfC4pPr8Ab40DoH8gOsHDzKg6zbDsYvKQ+RjHt63XvqINqTcg/aDBQPjSsXyh GlWk17pQHQsKblmBmSu7fIExPl6s2KlateUcU=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=rqTrXwxzbemCKRoGIddj2zQ2OcObh2/THmbALLpPN+oQ7PxrzUkn4T42Ka449pSNsQ 2KbFWSbdJxsqAvM8Eurch1AHWx5A1dy2NW0MC/e22+9GO7p7mR+d47J5Sw/kpmo7aaKE 2oH+T7v8YlNy/tbtZvineD+gLocg0/fnMG1No=
Hi,
I am using eclipse right now to do my aspectj coding, and I can't seem
to create a concrete aspect in package x from an abstract aspect in
package y. I always get the error:
"inherited abstract pointcut bar.PrintAround.method() is not made
concrete in foo.PrintAroundFoo"
Here is a small example that exhibits this issue:
package bar;
public abstract aspect PrintAround {
abstract pointcut method();
Object around(): method() {
System.out.println("-before-");
Object r = proceed();
System.out.println("-after-");
return r;
}
}
//---------------------------------------------------
package foo;
public class Foo {
public static void main (String[] args) {
System.out.println("foo!");
}
}
//---------------------------------------------------
package foo;
import bar.PrintAround;
public aspect PrintAroundFoo extends PrintAround {
pointcut method() : call (void Main(String[]));
}
//---------------------------------------------------
I worked around this issue before, but right now I'm trying to create
a library of aspects, and it's a pain that I have to make the aspects
always be part of the application namespace.
Thanks,
~David