aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr138158/Foo.java
blob: fdda0b42b43beac4c40a271ea6a280d682229ab4 (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 {}


public class Foo {
  public static void main(String []argv) {
    new Foo().m(); 
  }

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

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

  before(): call(* println(..)) && @withincode(Goo) {  }
}