aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/pertypewithin/V.java
blob: c649610d1a6651114d166e5760f75de1299f2be2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
public class V {

  public static int staticVar;
  public int      instanceVar;

  public static void main(String[] argv) {
    new V().m();
  }

  public void m() {
    staticVar = 4;
    instanceVar = 5;
  }

  static {
    System.err.println("In static initializer");
  }

}

aspect Vaspect pertypewithin(V) {

  before(): within(*) { }
}