[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] Aspects and packages
|
- From: "Andy Clement" <andrew.clement@xxxxxxxxx>
- Date: Thu, 3 Jul 2008 17:19:28 -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:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=sJviD2aXEBenBsQwCLgwk3mbjxHTMrKnWDCmi/3m/yY=; b=nKi2ADtcn/togqyuJBk8p9iX0iqpXZZp+8guWwMvBlrEVgdrGzEyJOZBZwqdvlwLB8 crjJuRmcXkVtO+c7Mk8fAmdFeIchiwxRm9etgvChgO00w0Dk228S3dE5hbCNJWGZ5AyY XkiV2oSq2tkgWlIDtSObopb+bdgds+5G6Py34=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=QErucbrPXwOyPRZA5IthNCBIWwkqT2UtE0XgXw5hoAD7wufKAfvZSrgi8uoLycJGg9 DDZYK+mLYi3mrc1nReJO7G79qbgul70GRmognh7JjbGlboRONnbMQJlHXcKJVLGKj5ec ZLYa9LaAqxv/QzSTIQbvRepw4XOfQtTXeYYXI=
Hi,
You need to make the pointcuts public.
cheers,
Andy.
2008/7/3 David Mohr <dmohr@xxxxxxxxxx>:
> 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
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>