diff options
Diffstat (limited to 'tests/bugs162/pr163005/ProblemAspect.java')
-rw-r--r-- | tests/bugs162/pr163005/ProblemAspect.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/bugs162/pr163005/ProblemAspect.java b/tests/bugs162/pr163005/ProblemAspect.java new file mode 100644 index 000000000..e9cd5983f --- /dev/null +++ b/tests/bugs162/pr163005/ProblemAspect.java @@ -0,0 +1,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); + + } +} |