Skip to main content

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

I want to declare an error on non abstract classes of type Cluster without a specific annotation.
I cannot write something like this: within(!@DaoLink !abstract Cluster+);

How can i do this?




I'm using this code:

...
   pointcut clusterWithoutDAOAnno():
       execution(* *(..)) &&
       within(!@DaoLink Cluster+);
declare error: clusterWithoutDAOAnno():
       "please use @DaoLink Annotation for Cluster Objects";

...


Back to the top