aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs170/pr364380/X.aj
blob: c69da116742c3eb06631a5794ff07a43cff9c1b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package ca;
import org.aspectj.lang.annotation.*;

@Aspect
class OwnershipSecurityAspect {


   @Pointcut("call(public void ca..setOwner(..)) && !within(ca..OwnershipSecurityAspect) && !within(ca..*Test)")
   protected void myPcut() {}

   @DeclareWarning("myPcut()")
   public static final String securityError = "An advice already exists for setting an owner";



}