summaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr138158/Boo.java
blob: 7a3bb0f637cb8877fd78b1d9286a81259f0a870e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@interface Goo {}


public class Boo {
  public static void main(String []argv) {
    new Boo().m(); // advises here
  }

  @Goo
  public void m() {
    System.err.println("");
  }
}

aspect X {
  before(): call(* *(..)) && !@withincode(Goo) {
  }
}