summaryrefslogtreecommitdiffstats
path: root/tests/java5/annotations/within/PlainWithinTests.java
blob: 087356a202c92f14f521c9dc7c4ed9eb5b61bce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
public aspect PlainWithinTests {
    
    // CW L 21
    declare warning : execution(* foo()) && within(@MyAnnotation *)
       : "positive within match on annotation";
    
    // CW L25
    declare warning : execution(* foo()) && !within(@MyAnnotation *)
       : "negative within match on annotation";
    
    
}