aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/pertypewithin/U.java
blob: a1316fb7d5c0d4a484900d623b3dd63f6109a361 (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 U {

  public static int staticVar;
  public int      instanceVar;

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

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

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

}

aspect Uaspect {

  before(): within(U) { }
}