aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr137496/E.java
blob: 2abfed94dab80fa52d233f30b7cd387ed039a229 (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
interface P<T> {
  public T pm(T t);
}

interface C extends P<String> {
  public void cm();
}

class CImpl implements C {
  public void cm() {}
  public String pm(String s)  { System.err.println(s);return s;}
}

public class E {

  public static void main(String []argv) {
    C test = new CImpl();
    test.pm("foo"); // manifests as 'Object pm(Object) call' due to type C being used
  }
}

aspect X {
  before(): call(* pm(String)) { System.err.println("advice");} // matches?
}