[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] NoAspectBoundException

Works for me.  Check the FAQ entry on NoAspectBoundException.


http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/aspectj-home/doc/faq.html#q:noaspectbound

Wes


Valentino Vranić wrote:

Hello!

Running of the following simple code that ran fine in AspectJ 1.0 causes a NoAspectBoundException. Is there something wrong with it with respect to changes in AspectJ 1.1?

class C
{
 public void m1(){System.out.println("m1");}

    public static void main(String[] args) {
    C x = new C();
    x.m1();
    }
}

aspect Ac
{
    before(C o): target(o) && call(* m1(..)) {
        System.out.println("Ac");}
}

Regards

Valentino