aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr108816.aj
blob: cfec719abc4215152b9121d7cf9277349d2158de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
aspect BadAdvice {
    after(Object controller) returning (Object foo): 
      cflow(adviceexecution() && args(controller, ..) && this(BadAdvice)) && 
      call(Bar+.new(..)) 
    {
    }    
    
    Object around(Object controller) : call(* whoKnows()) && target(controller) 
    {
        return new Bar();
    }
    
    public static void main(String args[]) {
        (new Bar()).whoKnows();
    }
}

class Bar {
    void whoKnows() {}
}