summaryrefslogtreecommitdiffstats
path: root/tests/bugs151/pr121616.java
blob: 656260112d12122a50ed57c02f222c5c14569860 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

class Main {
        public static void main(String[] args) {
                System.out.println("Main");
        }
}

@Aspect
class MainLogger {
    @Before("execution(* main(..))")
    public void log(JoinPoint thisJoinPoint) {
            System.out.println("Before " + thisJoinPoint);
    }
}