Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Concretize abstract pointcut with subtypes

Hi, I wonder if this is intended or just wrongful usage:
class A implements some reusable functionality.
class B extends class A with some specific functionality.
My aspect defines an abstract pointcut:
abstract pointcut(A a);
which is concretized in a sub-aspect as follows:
pointcut(B b):call(* B.*(..))&&target(b);

The purpose is to reuse some of the advices involving the abstract
pointcut in the abstract aspect in concrete scenarios.

This is flagged as a compiler error.

Thanks for any help.

Charles


Back to the top