aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1811/509235/Code2.java
blob: 67765c1cbd08f7dc4586700eff7327562e668e1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
public class Code2 {
  public static void main(String []argv) {
    foo("fooname");
    bar("crap","barname");
  }

  public static void foo(String username) {}

  public static void bar(String a, String username) { }
}

aspect X {
  before(String username): (execution(public static * foo(..)) && args(username)) ||
                           (execution(public static * bar(..)) && args(*,username)) {
    System.out.println("username = "+username);
  }
}