aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr138158/Doo.java
blob: fbc13bfe7538cfd4cf618d5ff498326b995f8a69 (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
25
26
27
import java.lang.annotation.*;

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


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

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

class Soo {
	public void m() {
	    System.err.println("");
	}
}

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