Skip to main content

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

Hi,
 
I'm receving an error when trying to concretize a pointcut in an aspect that belongs to another package. The message is:
"inherited abstract pointcut package1.AbstractAspect.test() is not made concrete in package2.ConcreteAspect"
My code is shown bellow. If I move the ConcreteAspect to the package1 the code works fine.
 
Any suggestions?
 
Thanks,
 
André
 
-----------------------------------------
package package1;
 
public abstract aspect AbstractAspect {
  abstract pointcut test();
}
-----------------------------------------
 
package package2;
 
import package1.*;
 
public aspect ConcreteAspect extends AbstractAspect {
  pointcut test() : execution(* *(..));
}
-----------------------------------------
 
package package2;
 
public class Test {
  public static void main(String[] args) {
    System.out.println("test");
  }
}
 
 

Back to the top