aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/ataspectj/coverage/Test032.java
blob: 09a45a205c21bded46f5304478dd11a06c5453d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// "calling @Before advice explicitly as a method"

import org.aspectj.lang.annotation.*;

@Aspect
class A{
  @Before("call(* *.*(..))")
  public void someCall(){
  }
}
class B{
  public static void main(String[] args){
    A a = new A();
    a.someCall();
  }
}