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

@interface I {
  boolean b();
}
aspect A {
  declare parents: hasmethod(@I(b=true) * *(..)) implements java.io.Serializable;
}

class B {
@I(b=true)  public void m() {}
}
class C {
@I(b=false)  public void m() {}
}