aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr99089/TracingAspect.java
blob: f318797bf5e41ab06eb0b881b8b07e01415cab3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import java.util.Vector;

privileged aspect TracingAspect {
  before(DataClass dc): execution(* DataClass.doit()) && this(dc) {
    Vector<Object> myV = dc.getV();
    System.err.println("before:Length of v="+myV.size());
  }
  after(DataClass dc): execution(* DataClass.doit()) && this(dc) {
    Vector<Object> myV = dc.getV();
    System.err.println("after:Length of v="+myV.size());
  }
}