Skip to main content

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

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
 

Back to the top