aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs161/pr235505/B.java
blob: f06802c13f98260c509ae5c056a58380c1053a5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
privileged abstract aspect A<T> {
  public void foo(T t) { System.out.println(t); }
  before(T t): execution(* *(..)) && args(t) && !within(A+) { foo(t); }
}

aspect X extends A<String> {}

public class B {
  public static void main(String []argv) {
    new B().run("Hello World");
  }

  public void run(String s) {
    System.out.println(s);
  }
}