summaryrefslogtreecommitdiffstats
path: root/tests/bugs160/various/S.java
blob: bf152b1685aee4d960e5ea9a92fb068ded6fa8fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// HasMethod with anno value matching

@interface I {
  String s();
}
aspect A {
  declare parents: hasmethod(@I(s="abc") * *(..)) implements java.io.Serializable;
}

class B {
@I(s="abc")  public void m() {}
}
class C {
@I(s="def")  public void m() {}
}