aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs162/pr163005/ProblemAspect.java
blob: e9cd5983f38bbf9a00fb94ab9be6d3cb4b5f55dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
public aspect ProblemAspect {

        pointcut init(): initialization(Object+.new(..));

        pointcut staticinit(): staticinitialization(Object+);

        Class around(String className): cflowbelow(init() || staticinit()) &&
call(Class Class.forName(String)) && args(className) {
                System.out.println("Test");
                return proceed(className);

        }
}